From 071d23c0dfb417fc209b5ad70a0976a87655fbf3 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Tue, 10 Jan 2023 14:55:54 +1100 Subject: [PATCH] update comments --- SessionMessagingKit/Database/Models/Interaction.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SessionMessagingKit/Database/Models/Interaction.swift b/SessionMessagingKit/Database/Models/Interaction.swift index 277a29585..d00e737b1 100644 --- a/SessionMessagingKit/Database/Models/Interaction.swift +++ b/SessionMessagingKit/Database/Models/Interaction.swift @@ -177,6 +177,10 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu /// A flag indicating whether the interaction has been read (this is a flag rather than a timestamp because /// we couldn’t know if a read timestamp is accurate) /// + /// This flag is used: + /// - In conjunction with `Interaction.variantsToIncrementUnreadCount` to determine the unread count for a thread + /// - In order to determine whether the "Disappear After Read" expiration type should be started + /// /// **Note:** This flag is not applicable to standardOutgoing or standardIncomingDeleted interactions public private(set) var wasRead: Bool