Undo-Deleted realtime notification receiving Edited DateTime value even though the message has not been edited.

Bipin P 61 Reputation points
2021-04-23T07:06:48.087+00:00

In following scenario we are receiving EditedDateTime value even though message has not been edited.

  1. Subscribe Ms-Teams subscription https://graph.microsoft.com/v1.0/subscriptions with chat resource. e.g https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http
  2. Send message from one of the Team or Chat Item. {Do it from https://teams.microsoft.com/_#/ browser}
  3. Receive the notification with createdDateTime value but lastEditedDateTime and deletedDateTime are null respectively.
  4. Delete the message from {https://teams.microsoft.com/_#/ browser}
  5. Receive the notification with createdDateTime and deletedDateTime with value but lastEditedDateTime value is null.
  6. Undo delete action from {https://teams.microsoft.com/_#/ browser}
  7. Receive the notification with createdDateTime and lastEditedDateTime with value but deletedDateTime value is null.90607-undo-deleted-incorrect-details.jpg
  8. Looks not correct because original message was not edited any time.

When I called a https://graph.microsoft.com/beta/teams/<TeamID>/channels/<ChannelId>/messages?$top=1 from Postman
I got the correct details. Receive the data createdDateTime with value but lastEditedDateTime and deletedDateTime are null respectively.

In real-time notification, we are getting incorrect data. I have attached snapshot for more information.

The cause is we are not able to understand whether the message was actually edited or undo deleted.

Microsoft Teams | Development
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Sridevi-MSFT 261 Reputation points
    2021-05-19T12:17:04.303+00:00

    We have raised a bug for this issue and concerned team is working on it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.