fix optional account unwrap in editMessage self-chat read (#18)
iOS CI / Build and Test SwiftUI App (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build macOS ZIP (push) Canceled after 0s

editMessage has no guard let account, so the self-chat read shortcut
compared against an optional; use optional chaining to build.

Refs #18
This commit is contained in:
wt committed 2026-09-18 12:55:05 +07:00
1 parent ade7efea1a
commit 338affd89e
1 file changed
+1 -1
+1 -1
View File
@@ -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 {