small fix

This commit is contained in:
Claire G 2022-03-16 14:06:07 +01:00
parent d53de395b8
commit b073724045

View File

@ -46,10 +46,9 @@ val RoomNotificationSettingsViewState.notificationStateMapped: Async<RoomNotific
* Also in the new settings there is no notion of notifications without sound so it maps to noisy also
*/
(roomSummary()?.isEncrypted == true && notificationState() == RoomNotificationState.MENTIONS_ONLY)
-> Success(RoomNotificationState.MUTE)
(roomSummary()?.isEncrypted == true && notificationState() == RoomNotificationState.ALL_MESSAGES)
-> Success(RoomNotificationState.ALL_MESSAGES_NOISY)
else -> notificationState
-> Success(RoomNotificationState.MUTE)
notificationState() == RoomNotificationState.ALL_MESSAGES -> Success(RoomNotificationState.ALL_MESSAGES_NOISY)
else -> notificationState
}
}