From 2d20e2127fe0c3fa62490035c2d7930b9bf2ed99 Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Fri, 24 May 2024 13:11:01 +0700 Subject: [PATCH] TW-1526: Fix Cannot unmute more than 2 chats at the same time --- lib/pages/chat_list/chat_list.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index cbb0720a55..61cf3b1b24 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -309,12 +309,13 @@ class ChatListController extends State Future toggleMutedSelections() async { await TwakeDialog.showFutureLoadingDialogFullScreen( future: () async { + final newRuleState = pushRuleState; for (final conversation in conversationSelectionNotifier.value) { final room = activeClient.getRoomById(conversation.roomId)!; - if (room.pushRuleState == pushRuleState) continue; + if (room.pushRuleState == newRuleState) continue; await activeClient .getRoomById(conversation.roomId)! - .setPushRuleState(pushRuleState); + .setPushRuleState(newRuleState); } }, );