mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add toggle not invite notifications. (#2207)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user