added multi accounting #4
Build Unsigned iOS ipa / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned macOS App / Build macOS ZIP (push) Canceled after 0s
iOS CI / Build and Test SwiftUI App (push) Canceled after 0s

This commit is contained in:
wt committed 2026-09-27 22:59:20 +07:00
1 parent 95a1c62b54
commit ca1a69e61f
5 files changed
+211 -34

No files matched your search

+9
View File
@@ -78,6 +78,15 @@ final class Conversation {
}
}
/// A row in the cross-account inbox. JID alone is not a stable identity when
/// two logged-in accounts have the same contact or a self-chat.
struct AccountConversation: Identifiable {
let account: AccountConfiguration
let conversation: Conversation
var id: String { "\(account.normalizedJID)|\(conversation.jid)" }
}
private extension String {
var nilIfBlank: String? {
trimmingCharacters(in: .whitespacesAndNewlines).isEmpty ? nil : self