Mercurial > prosody-modules
comparison mod_muc_occupant_id/mod_muc_occupant_id.lua @ 3775:d60efdb947fd
mod_web_push: Remove; 357 should be reused instead of this custom implementation
author | Maxime “pep” Buquet <pep@bouah.net> |
---|---|
date | Tue, 24 Dec 2019 14:22:27 +0100 |
parents | 6a437d6eb69f |
children | f20a5d28910f |
comparison
equal
deleted
inserted
replaced
3774:20346da6d241 | 3775:d60efdb947fd |
---|---|
33 end | 33 end |
34 | 34 |
35 local function handle_stanza(event) | 35 local function handle_stanza(event) |
36 local stanza, occupant = event.stanza, event.occupant; | 36 local stanza, occupant = event.stanza, event.occupant; |
37 | 37 |
38 if stanza.name == "presence" and stanza.attr.type == "unavailable" then -- not required here | |
39 return; | |
40 end | |
41 | |
42 -- TODO: Handle MAM. | 38 -- TODO: Handle MAM. |
43 | 39 |
44 -- strip any existing <occupant-id/> tags to avoid forgery | 40 -- strip any existing <occupant-id/> tags to avoid forgery |
45 stanza:remove_children("occupant-id", xmlns_occupant_id); | 41 stanza:remove_children("occupant-id", xmlns_occupant_id); |
46 | 42 |