Enable group call notification settings when group ringing is enabled.

This commit is contained in:
Cody Henthorne 2021-09-17 09:53:28 -04:00 committed by GitHub
parent fd01ee2a87
commit 62d8c115ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import org.thoughtcrime.securesms.keyvalue.SignalStore
import org.thoughtcrime.securesms.notifications.NotificationChannels
import org.thoughtcrime.securesms.recipients.Recipient
import org.thoughtcrime.securesms.recipients.RecipientId
import org.thoughtcrime.securesms.util.FeatureFlags
import org.thoughtcrime.securesms.util.livedata.Store
class CustomNotificationsSettingsViewModel(
@ -42,7 +43,7 @@ class CustomNotificationsSettingsViewModel(
RecipientDatabase.VibrateState.ENABLED -> true
RecipientDatabase.VibrateState.DISABLED -> false
},
showCallingOptions = !recipient.isGroup && recipient.isRegistered,
showCallingOptions = recipient.isRegistered && (!recipient.isGroup || FeatureFlags.groupCallRinging()),
callSound = recipient.callRingtone,
callVibrateState = recipient.callVibrate
)