From 1339c60d06a80588162cf1c118084bff0122f7fc Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 12 Jan 2024 13:51:37 +1030 Subject: [PATCH] Fix received messages deleted instantly --- .../thoughtcrime/securesms/notifications/MarkReadReceiver.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/notifications/MarkReadReceiver.kt b/app/src/main/java/org/thoughtcrime/securesms/notifications/MarkReadReceiver.kt index e5a7436de9..d4b086c37d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/notifications/MarkReadReceiver.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/notifications/MarkReadReceiver.kt @@ -135,6 +135,8 @@ class MarkReadReceiver : BroadcastReceiver() { ) { Log.d(TAG, "MarkReadReceiver#scheduleDeletion() called with: expirationInfo = $expirationInfo, expiresIn = $expiresIn") + if (expiresIn == 0L) return + val now = nowWithOffset val expireStarted = expirationInfo.expireStarted