|
@@ -66211,11 +66211,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
const MAM_ATTRIBUTES = ['with', 'start', 'end'];
|
|
|
|
|
|
function getMessageArchiveID(stanza) {
|
|
|
+ // See https://xmpp.org/extensions/xep-0313.html#results
|
|
|
+ //
|
|
|
+ // The result messages MUST contain a <result/> element with an 'id'
|
|
|
+ // attribute that gives the current message's archive UID
|
|
|
const result = sizzle(`result[xmlns="${Strophe.NS.MAM}"]`, stanza).pop();
|
|
|
|
|
|
if (!_.isUndefined(result)) {
|
|
|
return result.getAttribute('id');
|
|
|
- }
|
|
|
+ } // See: https://xmpp.org/extensions/xep-0313.html#archives_id
|
|
|
+
|
|
|
|
|
|
const stanza_id = sizzle(`stanza-id[xmlns="${Strophe.NS.SID}"]`, stanza).pop();
|
|
|
|