From c969a8e012430c33d755134e793cc36356e823f2 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Tue, 30 May 2023 13:36:48 +1000 Subject: [PATCH] fix disappear after read not working for message sender --- SessionMessagingKit/Database/Models/Interaction.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SessionMessagingKit/Database/Models/Interaction.swift b/SessionMessagingKit/Database/Models/Interaction.swift index fc2d6a1f7..23b25a358 100644 --- a/SessionMessagingKit/Database/Models/Interaction.swift +++ b/SessionMessagingKit/Database/Models/Interaction.swift @@ -379,7 +379,7 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu disappearingMessagesConfiguration.isEnabled { self.expiresInSeconds = disappearingMessagesConfiguration.durationSeconds - if disappearingMessagesConfiguration.type == .disappearAfterSend { + if self.variant == .standardOutgoing || disappearingMessagesConfiguration.type == .disappearAfterSend { self.expiresStartedAtMs = Double(self.timestampMs) } }