Software /
code /
prosody-modules
Comparison
mod_push2/mod_push2.lua @ 6217:8ecd53452af8
mod_push2: LMC stanzas are not important
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Tue, 25 Mar 2025 15:20:35 -0500 |
parent | 6216:2f2539ce8f3b |
child | 6218:277db84b0c95 |
comparison
equal
deleted
inserted
replaced
6216:2f2539ce8f3b | 6217:8ecd53452af8 |
---|---|
200 local muc = jid.bare(stanza.attr.from) | 200 local muc = jid.bare(stanza.attr.from) |
201 local from_nick = jid.resource(stanza.attr.from) | 201 local from_nick = jid.resource(stanza.attr.from) |
202 if from_nick == session.rooms_joined[muc] then | 202 if from_nick == session.rooms_joined[muc] then |
203 return false | 203 return false |
204 end | 204 end |
205 end | |
206 | |
207 -- edits are not imporatnt | |
208 if stanza:get_child("replace", "urn:xmpp:message-correct:0") then | |
209 return false | |
205 end | 210 end |
206 | 211 |
207 -- empty bodies are not important | 212 -- empty bodies are not important |
208 return has_body(stanza) | 213 return has_body(stanza) |
209 end | 214 end |