From a50af6702e7e937f27996966974a04b783c53f12 Mon Sep 17 00:00:00 2001 From: ryanzhao Date: Tue, 10 Jan 2023 14:49:27 +1100 Subject: [PATCH] make expiresInSeconds & expiresStartedAtMs private(set) --- SessionMessagingKit/Database/Models/Interaction.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SessionMessagingKit/Database/Models/Interaction.swift b/SessionMessagingKit/Database/Models/Interaction.swift index bffaf4a11..277a29585 100644 --- a/SessionMessagingKit/Database/Models/Interaction.swift +++ b/SessionMessagingKit/Database/Models/Interaction.swift @@ -184,12 +184,12 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu public let hasMention: Bool /// The number of seconds until this message should expire - public var expiresInSeconds: TimeInterval? + public private(set) var expiresInSeconds: TimeInterval? /// The timestamp in milliseconds since 1970 at which this messages expiration timer started counting /// down (this is stored in order to allow the `expiresInSeconds` value to be updated before a /// message has expired) - public var expiresStartedAtMs: Double? + public private(set) var expiresStartedAtMs: Double? /// This value is the url for the link preview for this interaction ///