diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-22 18:48:27 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-22 18:48:27 +0200 |
commit | bb2a3804d1db20f02ae445991a3d92a596431c41 (patch) | |
tree | f953c15746f8cd42ef8e8fc63bebaa38955603d0 /plugins/mod_mam/mod_mam.lua | |
parent | ead815ece336974e216141f5549c4ea8083b0a63 (diff) | |
download | prosody-bb2a3804d1db20f02ae445991a3d92a596431c41.tar.gz prosody-bb2a3804d1db20f02ae445991a3d92a596431c41.zip |
mod_mam: Keep chat markers (thanks Ge0rG)
Diffstat (limited to 'plugins/mod_mam/mod_mam.lua')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 7ac2a512..06a20f4d 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -301,6 +301,9 @@ local function should_store(stanza) --> boolean, reason: string -- and the same applies to the receipt return true, "receipt"; end + if stanza:get_child(nil, "urn:xmpp:chat-markers:0") then + return true, "marker"; + end if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then return true, "invite"; |