Comparison

mod_muc_occupant_id/mod_muc_occupant_id.lua @ 3670:6a437d6eb69f

mod_muc_occupant_id: add TODO regarding MAM handling
author Maxime “pep” Buquet <pep@bouah.net>
date Thu, 12 Sep 2019 01:16:26 +0200
parent 3654:7b02b8de6d27
child 3775:d60efdb947fd
comparison
equal deleted inserted replaced
3669:14ad3f853c51 3670:6a437d6eb69f
37 37
38 if stanza.name == "presence" and stanza.attr.type == "unavailable" then -- not required here 38 if stanza.name == "presence" and stanza.attr.type == "unavailable" then -- not required here
39 return; 39 return;
40 end 40 end
41 41
42 -- TODO: Handle MAM.
43
42 -- strip any existing <occupant-id/> tags to avoid forgery 44 -- strip any existing <occupant-id/> tags to avoid forgery
43 stanza:remove_children("occupant-id", xmlns_occupant_id); 45 stanza:remove_children("occupant-id", xmlns_occupant_id);
44 46
45 local unique_id = occupant.sessions[stanza.attr.from] 47 local unique_id = occupant.sessions[stanza.attr.from]
46 :get_child("occupant-id", xmlns_occupant_id) 48 :get_child("occupant-id", xmlns_occupant_id)