# HG changeset patch # User Kim Alvefur # Date 1461873780 -7200 # Node ID 92755ca737c35e4db4600417c139c12a8d6b30a0 # Parent 5a65750d959a3f4ff1ee10e4804d384e0a81458f MUC: Log cases of possible room resynchronisation diff -r 5a65750d959a -r 92755ca737c3 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed Apr 27 18:55:49 2016 +0200 +++ b/plugins/muc/muc.lib.lua Thu Apr 28 22:03:00 2016 +0200 @@ -429,6 +429,14 @@ 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;