Comparison

plugins/mod_mam/mod_mam.lua @ 13791:aecdec3dad83

Merge 13.0->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 23 Mar 2025 20:19:09 +0100
parent 13790:24252947a8ca
comparison
equal deleted inserted replaced
13787:3e72cdca6beb 13791:aecdec3dad83
339 -- MUC messages always go to the full JID, usually archived by the MUC 339 -- MUC messages always go to the full JID, usually archived by the MUC
340 return false, "groupchat"; 340 return false, "groupchat";
341 end 341 end
342 if stanza:get_child("no-store", "urn:xmpp:hints") 342 if stanza:get_child("no-store", "urn:xmpp:hints")
343 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then 343 or stanza:get_child("no-permanent-store", "urn:xmpp:hints") then
344 -- XXX Experimental XEP
345 return false, "hint"; 344 return false, "hint";
346 end 345 end
347 if stanza:get_child("store", "urn:xmpp:hints") then 346 if stanza:get_child("store", "urn:xmpp:hints") then
348 return true, "hint"; 347 return true, "hint";
349 end 348 end
363 -- If it's important enough to ask for a receipt then it's important enough to archive 362 -- If it's important enough to ask for a receipt then it's important enough to archive
364 -- and the same applies to the receipt 363 -- and the same applies to the receipt
365 return true, "receipt"; 364 return true, "receipt";
366 end 365 end
367 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then 366 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then
368 -- XXX Experimental XEP
369 return true, "marker"; 367 return true, "marker";
370 end 368 end
371 if stanza:get_child("x", "jabber:x:conference") 369 if stanza:get_child("x", "jabber:x:conference")
372 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then 370 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then
373 return true, "invite"; 371 return true, "invite";