mod_roster: Fire event for pending items for good measure

This commit is contained in:
Kim Alvefur 2016-04-04 21:48:42 +02:00
parent cc487c8b9d
commit afcc889869

View file

@ -143,6 +143,12 @@ module:hook_global("user-deleted", function(event)
module:fire_event("roster-item-removed", {
username = username, jid = jid, item = item, roster = roster, origin = origin,
});
else
for jid in pairs(item.pending) do
module:fire_event("roster-item-removed", {
username = username, jid = jid, roster = roster, origin = origin,
});
end
end
end
end, 300);