diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-04 21:48:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-04 21:48:42 +0200 |
commit | c2f007b32e4da5debcf5a14e0059c5351d1c26ce (patch) | |
tree | b72a52b5de7ee382cfa50bb6ca0194b883ff4bf4 /plugins/mod_roster.lua | |
parent | 35705f87ed7115268facc7853d5bc6b6054df4bc (diff) | |
download | prosody-c2f007b32e4da5debcf5a14e0059c5351d1c26ce.tar.gz prosody-c2f007b32e4da5debcf5a14e0059c5351d1c26ce.zip |
mod_roster: Fire event for pending items for good measure
Diffstat (limited to 'plugins/mod_roster.lua')
-rw-r--r-- | plugins/mod_roster.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 0e3fdc4e..454acebb 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -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); |