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 | 9bb75c85c478a5da62e697aa6006c570db15eae2 (patch) | |
tree | f953c15746f8cd42ef8e8fc63bebaa38955603d0 /plugins/mod_mam/mod_mam.lua | |
parent | 8c1161cf773fa9eb5371e2bffdb054b97a71dad1 (diff) | |
download | prosody-9bb75c85c478a5da62e697aa6006c570db15eae2.tar.gz prosody-9bb75c85c478a5da62e697aa6006c570db15eae2.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"; |