From ee657cb075c07a68d8781418dad16b630b2ac333 Mon Sep 17 00:00:00 2001 From: Michelle Tang Date: Mon, 11 Aug 2025 15:54:47 -0400 Subject: [PATCH] Fix notification profile override crash. --- .../org/thoughtcrime/securesms/storage/StorageSyncHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/storage/StorageSyncHelper.kt b/app/src/main/java/org/thoughtcrime/securesms/storage/StorageSyncHelper.kt index 5d9e5849af..8fbd03dd8c 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/storage/StorageSyncHelper.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/storage/StorageSyncHelper.kt @@ -314,7 +314,7 @@ object StorageSyncHelper { SignalStore.notificationProfile.manuallyDisabledAt = System.currentTimeMillis() } } - } else { + } else if (update.new.proto.notificationProfileManualOverride!!.disabledAtTimestampMs != null) { SignalStore.notificationProfile.manuallyEnabledProfile = 0 SignalStore.notificationProfile.manuallyEnabledUntil = 0 SignalStore.notificationProfile.manuallyDisabledAt = update.new.proto.notificationProfileManualOverride!!.disabledAtTimestampMs!!