Skip to content

Commit

Permalink
Merge pull request #2 from mimi89999/devicelist
Browse files Browse the repository at this point in the history
Correct devicelist node name
  • Loading branch information
hantu85 authored Feb 26, 2021
2 parents 89300b9 + 6851848 commit e50ca4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TigaseSwiftOMEMO/OMEMOModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ open class OMEMOModule: AbstractPEPModule {
}
} else {
group.enter();
pubsubModule.retrieveItems(from: jid, for: OMEMOModule.ID, lastItems: 1, onSuccess: { (stanza, node, items, rsm) in
pubsubModule.retrieveItems(from: jid, for: OMEMOModule.DEVICES_LIST_NODE, lastItems: 1, onSuccess: { (stanza, node, items, rsm) in
print("got published devices from:", jid, ", ", items.first as Any);
if let listEl = items.first?.payload, listEl.name == "list" && listEl.xmlns == "eu.siacs.conversations.axolotl" {
let knownActiveDevices: [Int32] = listEl.mapChildren(transform: { $0.getAttribute("id") }).compactMap({ Int32($0) });
Expand Down

0 comments on commit e50ca4b

Please sign in to comment.