Fix edit profile theming issue and mute until issue.

This commit is contained in:
Alex Hart
2021-06-30 11:11:35 -03:00
parent 62ee411901
commit 838e318200
5 changed files with 12 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ class SoundsAndNotificationsSettingsViewModel(
store.update(Recipient.live(recipientId).liveData) { recipient, state ->
state.copy(
recipientId = recipientId,
muteUntil = recipient.muteUntil,
muteUntil = if (recipient.isMuted) recipient.muteUntil else 0L,
mentionSetting = recipient.mentionSetting,
hasMentionsSupport = recipient.isPushV2Group,
hasCustomNotificationSettings = recipient.notificationChannel != null || !NotificationChannels.supported()