Skip to content

Commit

Permalink
TW-1526: Fix Cannot unmute more than 2 chats at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed May 24, 2024
1 parent dd94a70 commit 2d20e21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pages/chat_list/chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,13 @@ class ChatListController extends State<ChatList>
Future<void> 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);
}
},
);
Expand Down

0 comments on commit 2d20e21

Please sign in to comment.