diff options
-rw-r--r-- | core/rostermanager.lua | 4 | ||||
-rw-r--r-- | plugins/mod_roster.lua | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua index 757c9a6c..9a203337 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -59,8 +59,8 @@ function roster_push(username, host, jid) else stanza:tag("item", {jid = jid, subscription = "remove"}); end - stanza:up(); - stanza:up(); + stanza:up(); -- move out from item + stanza:up(); -- move out from stanza -- stanza ready for _, session in pairs(hosts[host].sessions[username].sessions) do if session.interested then diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 1ccaafd0..f5dbf742 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -26,6 +26,7 @@ add_iq_handler("c2s", "jabber:iq:roster", for group in pairs(session.roster[jid].groups) do roster:tag("group"):text(group):up(); end + roster:up(); -- move out from item end end send(session, roster); |