From 401793a16799e6f9425aed170ab88a0de6e0bcd5 Mon Sep 17 00:00:00 2001 From: Siddharth Vaghasia Date: Tue, 9 Jan 2024 16:16:16 +0530 Subject: [PATCH] fix for get message replies includeDelete flag --- src/Commands/Utilities/TeamsUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Utilities/TeamsUtility.cs b/src/Commands/Utilities/TeamsUtility.cs index 92cc349e1..627057c60 100644 --- a/src/Commands/Utilities/TeamsUtility.cs +++ b/src/Commands/Utilities/TeamsUtility.cs @@ -705,7 +705,7 @@ public static async Task> GetMessageRepliesAsync(P { var replies = await GraphHelper.GetResultCollectionAsync(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(); } ///