diff --git a/lib/domain/model/room/room_extension.dart b/lib/domain/model/room/room_extension.dart index 10a5627920..b70f7ef3b5 100644 --- a/lib/domain/model/room/room_extension.dart +++ b/lib/domain/model/room/room_extension.dart @@ -37,4 +37,12 @@ extension RoomExtension on Room { EventTypes.Encrypted, ].contains(lastEvent?.type); } + + Future mute() async { + await setPushRuleState(PushRuleState.mentionsOnly); + } + + Future unmute() async { + await setPushRuleState(PushRuleState.notify); + } }