Skip to content

Commit

Permalink
refactor: use extension mute in chat list
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored and hoangdat committed Sep 29, 2023
1 parent 4c2b973 commit df63b3d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/pages/chat_list/chat_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:collection/collection.dart';
import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/di/global/get_it_initializer.dart';
import 'package:fluffychat/domain/model/recovery_words/recovery_words.dart';
import 'package:fluffychat/domain/model/room/room_extension.dart';
import 'package:fluffychat/domain/usecase/recovery/get_recovery_words_interactor.dart';
import 'package:fluffychat/mixin/comparable_presentation_contact_mixin.dart';
import 'package:fluffychat/pages/bootstrap/bootstrap_dialog.dart';
Expand Down Expand Up @@ -668,11 +669,7 @@ class ChatListController extends State<ChatList>
await showFutureLoadingDialog(
context: context,
future: () async {
await client.getRoomById(room.id)!.setPushRuleState(
room.pushRuleState == PushRuleState.notify
? PushRuleState.mentionsOnly
: PushRuleState.notify,
);
await room.mute();
},
);
return;
Expand Down

0 comments on commit df63b3d

Please sign in to comment.