wip
This commit is contained in:
parent
af7664d2d3
commit
b1ca812c56
|
@ -209,9 +209,6 @@ extension Client {
|
|||
}
|
||||
|
||||
func fetchArchiveMessages(for roster: Roster, query: RSM.Query) async throws -> Martin.MessageArchiveManagementModule.QueryResult {
|
||||
if !discoManager.features.map({ $0.xep }).contains("XEP-0313") {
|
||||
throw AppError.featureNotSupported
|
||||
}
|
||||
let module = connection.module(MessageArchiveManagementModule.self)
|
||||
return try await module.queryItems(componentJid: JID(roster.bareJid), with: JID(roster.contactBareJid), queryId: UUID().uuidString, rsm: query)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue