Skip to content

Commit

Permalink
fix for get message replies includeDelete flag (#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-vaghasia authored Jan 9, 2024
1 parent ee54cfa commit 4e62d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Utilities/TeamsUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ public static async Task<List<TeamChannelMessageReply>> GetMessageRepliesAsync(P
{
var replies = await GraphHelper.GetResultCollectionAsync<TeamChannelMessageReply>(connection, $"v1.0/teams/{groupId}/channels/{channelId}/messages/{messageId}/replies", accessToken);

return includeDeleted ? replies.ToList() : replies.Where(r => r.DeletedDateTime.HasValue).ToList();
return includeDeleted ? replies.ToList() : replies.Where(r => !r.DeletedDateTime.HasValue).ToList();
}

/// <summary>
Expand Down

0 comments on commit 4e62d81

Please sign in to comment.