mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 04:56:22 +00:00
Merge branch 'bugfix/1329'
This commit is contained in:
@@ -443,6 +443,7 @@ _omemo_receive_devicelist(xmpp_stanza_t *const stanza, void *const userdata)
|
|||||||
|
|
||||||
xmpp_stanza_t *item = xmpp_stanza_get_child_by_name(items, "item");
|
xmpp_stanza_t *item = xmpp_stanza_get_child_by_name(items, "item");
|
||||||
if (item) {
|
if (item) {
|
||||||
|
if (g_strcmp0(xmpp_stanza_get_id(item), "current") == 0 ) {
|
||||||
xmpp_stanza_t *list = xmpp_stanza_get_child_by_ns(item, STANZA_NS_OMEMO);
|
xmpp_stanza_t *list = xmpp_stanza_get_child_by_ns(item, STANZA_NS_OMEMO);
|
||||||
if (!list) {
|
if (!list) {
|
||||||
return 1;
|
return 1;
|
||||||
@@ -461,7 +462,11 @@ _omemo_receive_devicelist(xmpp_stanza_t *const stanza, void *const userdata)
|
|||||||
log_error("OMEMO: received device without ID");
|
log_error("OMEMO: received device without ID");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log_warning("OMEMO: User %s has a non 'current' device item list: %s.", from, xmpp_stanza_get_id(item));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
omemo_set_device_list(from, device_list);
|
omemo_set_device_list(from, device_list);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user