Software /
code /
prosody
Changeset
10744:16002abe61b1
mod_mam: Keep chat markers (thanks Ge0rG)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 22 Apr 2020 18:48:27 +0200 |
parents | 10743:3967cf10de1b |
children | 10745:79b29f35fac1 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Wed Apr 22 18:47:06 2020 +0200 +++ b/plugins/mod_mam/mod_mam.lua Wed Apr 22 18:48:27 2020 +0200 @@ -301,6 +301,9 @@ -- 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";