fix: Drops extra message sent on leave.

This commit is contained in:
damencho 2021-05-18 17:24:17 -05:00 committed by Дамян Минков
parent eb3295cedd
commit 1f41ddd228
1 changed files with 0 additions and 10 deletions

View File

@ -97,16 +97,6 @@ module:hook("muc-occupant-joined", function (event)
end
end, 2);
module:hook("muc-occupant-left", function (event)
local room, occupant = event.room, event.occupant;
if is_healthcheck_room(room.jid) then
return;
end
room:set_affiliation(true, occupant.bare_jid, nil);
end, 2);
module:hook_global('config-reloaded', load_config);
-- Filters self-presences to a jid that exist in joining_participants array