From b7118b6bd8962b3cd86663eaa7646ffabbc02344 Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Thu, 15 Apr 2021 23:36:15 -0400 Subject: [PATCH] Fix view once media in notifications. --- .../securesms/notifications/v2/NotificationItemV2.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItemV2.kt b/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItemV2.kt index 2ed51f3c8..99decb8dc 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItemV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItemV2.kt @@ -39,7 +39,7 @@ sealed class NotificationItemV2(val threadRecipient: Recipient, protected val re val id: Long = record.id val threadId: Long = record.threadId val isMms: Boolean = record.isMms - val slideDeck: SlideDeck? = (record as? MmsMessageRecord)?.slideDeck + val slideDeck: SlideDeck? = if (record.isViewOnce) null else (record as? MmsMessageRecord)?.slideDeck val isJoined: Boolean = record.isJoined protected val notifiedTimestamp: Long = record.notifiedTimestamp