Mercurial > prosody-modules
comparison mod_muc_markers/mod_muc_markers.lua @ 4694:6c57b9e31586
mod_muc_markers: Don't skip archiving markable messages (thanks nicoco)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 18 Sep 2021 11:51:48 +0100 |
| parents | 2e33eeafe962 |
| children |
comparison
equal
deleted
inserted
replaced
| 4693:59f53cf66573 | 4694:6c57b9e31586 |
|---|---|
| 74 end); | 74 end); |
| 75 | 75 |
| 76 module:hook("muc-message-is-historic", function (event) | 76 module:hook("muc-message-is-historic", function (event) |
| 77 local marker = event.stanza:get_child(nil, xmlns_markers); | 77 local marker = event.stanza:get_child(nil, xmlns_markers); |
| 78 | 78 |
| 79 -- Prevent stanza from reaching the archive (it's just noise) | 79 if marker and marker.name ~= "markable" then |
| 80 if marker then | 80 -- Prevent stanza from reaching the archive (it's just noise) |
| 81 return false; | 81 return false; |
| 82 end | 82 end |
| 83 end); | 83 end); |
| 84 | 84 |
| 85 local function find_nickname(room, user_jid) | 85 local function find_nickname(room, user_jid) |
