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); } }, );