Comparison

plugins/mod_mam/mod_mam.lua @ 10739:50f0a4d83731

mod_mam: Store XEP-0184 receipts and requests Happy now Ge0rG?
author Kim Alvefur <zash@zash.se>
date Tue, 21 Apr 2020 01:18:54 +0200
parent 10738:19ffb2ebf114
child 10740:08efb60faf67
comparison
equal deleted inserted replaced
10738:19ffb2ebf114 10739:50f0a4d83731
289 return true, "subject"; 289 return true, "subject";
290 end 290 end
291 if stanza:get_child("encryption", "urn:xmpp:eme:0") then 291 if stanza:get_child("encryption", "urn:xmpp:eme:0") then
292 -- Since we can't know what an encrypted message contains, we assume it's important 292 -- Since we can't know what an encrypted message contains, we assume it's important
293 return true, "encrypted"; 293 return true, "encrypted";
294 end
295 if stanza:get_child(nil, "urn:xmpp:receipts") then
296 -- If it's important enough to ask for a receipt then it's important enough to archive
297 -- and the same applies to the receipt
298 return true, "receipt";
294 end 299 end
295 if stanza:get_child("x", "jabber:x:conference") 300 if stanza:get_child("x", "jabber:x:conference")
296 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then 301 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then
297 return true, "invite"; 302 return true, "invite";
298 end 303 end