mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_roster: Fire event for pending items for good measure
This commit is contained in:
parent
cc487c8b9d
commit
afcc889869
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue