Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire1817 committed Mar 16, 2022
1 parent d53de39 commit b073724
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit b073724

Please sign in to comment.