aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-28 22:03:00 +0200
committerKim Alvefur <zash@zash.se>2016-04-28 22:03:00 +0200
commit8cfdf1b4a2eafd2ffa83178053c4f7e4b42e1626 (patch)
treeade03a52be6497e57966db6227d6c5181198a18e /plugins/muc
parentf1fe6fddaca0638d9227e4a3c7a944070b0d77b5 (diff)
downloadprosody-8cfdf1b4a2eafd2ffa83178053c4f7e4b42e1626.tar.gz
prosody-8cfdf1b4a2eafd2ffa83178053c4f7e4b42e1626.zip
MUC: Log cases of possible room resynchronisation
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua8
1 files changed, 8 insertions, 0 deletions
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 <x>, possibly desynced");
+ elseif orig_occupant ~= nil and muc_x then
+ module:log("debug", "Presence update with <x>, possibly desynced");
+ end
+
local event, event_name = {
room = self;
origin = origin;