mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Fix early get self crash when cycling KCS.
This commit is contained in:
committed by
Greyson Parrelli
parent
fa692690a2
commit
db9ae1c85b
@@ -125,6 +125,11 @@ class DefaultMessageNotifier(context: Application) : MessageNotifier {
|
||||
) {
|
||||
NotificationChannels.getInstance().ensureCustomChannelConsistency()
|
||||
|
||||
if (!Recipient.isSelfSet) {
|
||||
Log.w(TAG, "Attempting to update notifications without local self, aborting")
|
||||
return
|
||||
}
|
||||
|
||||
val currentLockStatus: Boolean = KeyCachingService.isLocked(context)
|
||||
val currentPrivacyPreference: NotificationPrivacyPreference = SignalStore.settings.messageNotificationsPrivacy
|
||||
val notificationConfigurationChanged: Boolean = currentLockStatus != previousLockedStatus || currentPrivacyPreference != previousPrivacyPreference
|
||||
|
||||
Reference in New Issue
Block a user