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
This commit is contained in:
1 parent
ade7efea1a
commit
338affd89e
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user