Fix Crash when opening the new Room Notification Settings Screen (Not yet released) (#4599)

This commit is contained in:
David Langley
2021-07-26 11:39:45 +01:00
parent c2edd68773
commit b276a15518
2 changed files with 9 additions and 2 deletions
@@ -264,11 +264,17 @@ fileprivate extension MXRoom {
}
var overridePushRule: MXPushRule? {
getRoomRule(from: mxSession.notificationCenter.rules.global.override)
guard let overrideRules = mxSession.notificationCenter.rules.global.override else {
return nil
}
return getRoomRule(from: overrideRules)
}
var roomPushRule: MXPushRule? {
getRoomRule(from: mxSession.notificationCenter.rules.global.room)
guard let roomRules = mxSession.notificationCenter.rules.global.room else {
return nil
}
return getRoomRule(from: roomRules)
}
var notificationState: RoomNotificationState {