added multi accounting #4
This commit is contained in:
1 parent
95a1c62b54
commit
ca1a69e61f
5 files changed
+211
-34
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user