wip
This commit is contained in:
parent
002e152604
commit
2dc41c2013
|
@ -79,6 +79,23 @@ final class XMPPService: ObservableObject {
|
|||
}).store(in: &clientMessagesCancellables)
|
||||
|
||||
client.login()
|
||||
|
||||
client.module(.mam).$availableVersions.sink(receiveValue: { [weak client] versions in
|
||||
guard !versions.isEmpty, let client = client else {
|
||||
return
|
||||
}
|
||||
print("MAM available versions: \(versions)")
|
||||
// MessageEventHandler.syncMessagesScheduled(for: client)
|
||||
}).store(in: &clientMessagesCancellables)
|
||||
|
||||
client.module(.mam).archivedMessagesPublisher.sink(receiveValue: { archived in
|
||||
print("MAM archived message: \(archived.message)")
|
||||
|
||||
// guard let conversation = MessageEventHandler.conversationKey(for: archived.message, on: account) else {
|
||||
// return
|
||||
// }
|
||||
// DBChatHistoryStore.instance.append(for: conversation, message: archived.message, source: .archive(source: archived.source, version: archived.query.version, messageId: archived.messageId, timestamp: archived.timestamp))
|
||||
}).store(in: &clientMessagesCancellables)
|
||||
}
|
||||
|
||||
// remove clients
|
||||
|
|
|
@ -53,7 +53,7 @@ targets:
|
|||
# UIUserInterfaceStyle: Light
|
||||
CFBundleDisplayName: Conversations
|
||||
CFBundleShortVersionString: "1.0.0"
|
||||
CFBundleVersion: "1"
|
||||
CFBundleVersion: "2"
|
||||
sources:
|
||||
- path: ConversationsClassic
|
||||
excludes:
|
||||
|
|
Loading…
Reference in a new issue