From 338affd89ee4f7381248e0c0242e541bf2841f4f Mon Sep 17 00:00:00 2001 From: wt Date: Fri, 18 Sep 2026 12:55:05 +0700 Subject: [PATCH] fix optional account unwrap in editMessage self-chat read (#18) editMessage has no guard let account, so the self-chat read shortcut compared against an optional; use optional chaining to build. Refs #18 --- Sources/Shared/Models/AppModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Shared/Models/AppModel.swift b/Sources/Shared/Models/AppModel.swift index 85cf284..7c05709 100644 --- a/Sources/Shared/Models/AppModel.swift +++ b/Sources/Shared/Models/AppModel.swift @@ -1170,7 +1170,7 @@ final class AppModel: ObservableObject { $0.delivery = $0.delivery.merged(with: .sent) $0.encryptionFingerprint = fingerprint } - if previous.conversationID == account.normalizedJID { + if previous.conversationID == account?.normalizedJID { markMessageAsReadIfOutgoing(id: id) } } catch {