mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-08 17:07:43 +02:00
Merge pull request #4600 from vector-im/element_4599
Fix Crash when opening the new Room Notification Settings Screen
This commit is contained in:
@@ -12,6 +12,7 @@ Changes to be released in next version
|
||||
🐛 Bugfix
|
||||
* Room: Fixed mentioning users from room info member details (#4583)
|
||||
* Settings: Disabled autocorrection when entering an identity server (#4593).
|
||||
* Room Notification Settings: Fix Crash when opening the new Room Notification Settings Screen (Not yet released) (#4599).
|
||||
|
||||
⚠️ API Changes
|
||||
*
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user