mod_minimix: Drop presence updates for now (may be treated as GC 1.0 joins)
authorKim Alvefur <zash@zash.se>
Tue, 19 Jun 2018 18:57:14 +0200
changeset 3124 b914ee44b49f
parent 3123 f84a6ad72548
child 3125 92b4a1d72d73
mod_minimix: Drop presence updates for now (may be treated as GC 1.0 joins)
mod_minimix/mod_minimix.lua
--- a/mod_minimix/mod_minimix.lua	Tue Jun 19 18:56:57 2018 +0200
+++ b/mod_minimix/mod_minimix.lua	Tue Jun 19 18:57:14 2018 +0200
@@ -58,6 +58,8 @@
 		end
 		origin.send(st.reply(stanza));
 		return true;
+	elseif stanza.attr.type == nil and origin.joined_rooms and origin.joined_rooms[room_jid] then
+		return true; -- Supress these
 	end
 end);