Comparison

plugins/mod_mam/mod_mam.lua @ 10744:16002abe61b1

mod_mam: Keep chat markers (thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Wed, 22 Apr 2020 18:48:27 +0200
parent 10743:3967cf10de1b
child 10745:79b29f35fac1
comparison
equal deleted inserted replaced
10743:3967cf10de1b 10744:16002abe61b1
298 end 298 end
299 if stanza:get_child(nil, "urn:xmpp:receipts") then 299 if stanza:get_child(nil, "urn:xmpp:receipts") then
300 -- If it's important enough to ask for a receipt then it's important enough to archive 300 -- If it's important enough to ask for a receipt then it's important enough to archive
301 -- and the same applies to the receipt 301 -- and the same applies to the receipt
302 return true, "receipt"; 302 return true, "receipt";
303 end
304 if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then
305 return true, "marker";
303 end 306 end
304 if stanza:get_child("x", "jabber:x:conference") 307 if stanza:get_child("x", "jabber:x:conference")
305 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then 308 or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then
306 return true, "invite"; 309 return true, "invite";
307 end 310 end