mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
fix checks
This commit is contained in:
parent
fe800a56e2
commit
cd424b0766
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ data class RoomNotificationSettingsViewState(
|
||||||
*/
|
*/
|
||||||
val RoomNotificationSettingsViewState.notificationStateMapped: Async<RoomNotificationState>
|
val RoomNotificationSettingsViewState.notificationStateMapped: Async<RoomNotificationState>
|
||||||
get() {
|
get() {
|
||||||
if ((roomSummary()?.isEncrypted == true && notificationState() == RoomNotificationState.MENTIONS_ONLY) || notificationState() == RoomNotificationState.ALL_MESSAGES) {
|
if ((roomSummary()?.isEncrypted == true && notificationState() == RoomNotificationState.MENTIONS_ONLY)
|
||||||
|
|| notificationState() == RoomNotificationState.ALL_MESSAGES) {
|
||||||
/** if in an encrypted room, mentions notifications are not supported so show "All Messages" as selected.
|
/** if in an encrypted room, mentions notifications are not supported so show "All Messages" as selected.
|
||||||
* Also in the new settings there is no notion of notifications without sound so it maps to noisy also
|
* Also in the new settings there is no notion of notifications without sound so it maps to noisy also
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue