Software /
code /
prosody
Changeset
7406:92755ca737c3
MUC: Log cases of possible room resynchronisation
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Apr 2016 22:03:00 +0200 |
parents | 7405:5a65750d959a |
children | 7407:e465b584547b |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <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;