Add toggle not invite notifications. (#2207)

This commit is contained in:
Doug
2023-12-06 09:53:10 +00:00
committed by GitHub
parent 731333a1cf
commit c7531be44c
15 changed files with 203 additions and 14 deletions
@@ -42,6 +42,7 @@ extension NotificationSettingsProxyMock {
getRoomsWithUserDefinedRulesReturnValue = []
isRoomMentionEnabledReturnValue = true
isCallEnabledReturnValue = true
isInviteForMeEnabledReturnValue = true
setNotificationModeRoomIdModeClosure = { [weak self] _, mode in
guard let self else { return }
@@ -83,6 +84,14 @@ extension NotificationSettingsProxyMock {
}
}
setInviteForMeEnabledEnabledClosure = { [weak self] enabled in
guard let self else { return }
self.isInviteForMeEnabledReturnValue = enabled
Task {
self.callbacks.send(.settingsDidChange)
}
}
canHomeserverPushEncryptedEventsToDeviceClosure = {
configuration.canHomeserverPushEncryptedEvents
}