From 8cfdf1b4a2eafd2ffa83178053c4f7e4b42e1626 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 28 Apr 2016 22:03:00 +0200 Subject: MUC: Log cases of possible room resynchronisation --- plugins/muc/muc.lib.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/muc/muc.lib.lua') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index ce6c5784..dde1e13f 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -429,6 +429,14 @@ function room_mt:handle_presence_to_occupant(origin, stanza) is_last_orig_session = iter(ob, iter(ob, last)) == nil; end + -- TODO Handle these cases sensibly + local muc_x = stanza:get_child("x", "http://jabber.org/protocol/muc"); + if orig_occupant == nil and not muc_x then + module:log("debug", "Join without , possibly desynced"); + elseif orig_occupant ~= nil and muc_x then + module:log("debug", "Presence update with , possibly desynced"); + end + local event, event_name = { room = self; origin = origin; -- cgit v1.2.3