Merge branch 'develop' into fix/857

This commit is contained in:
Salvatore Giordano
2022-02-01 09:33:22 +01:00
committed by GitHub
3 changed files with 13 additions and 1 deletions
@@ -1803,7 +1803,13 @@ class ChannelClientState {
if (replyCount == null || replyCount == 0) return;
addMessage(parentMessage.copyWith(replyCount: replyCount - 1));
updateThreadInfo(parentId, threads[parentId]!..remove(message));
updateThreadInfo(
parentId,
threads[parentId]!
..removeWhere(
(e) => e.id == message.id,
),
);
} else {
// Remove regular message
final allMessages = [...messages];