diff options
author | Kim Alvefur <zash@zash.se> | 2015-04-03 06:38:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-04-03 06:38:22 +0200 |
commit | 28c58565ace33870970010c9d195c5da5d9cf4d1 (patch) | |
tree | 8a900a61e238f2b5322212f10401172cb4d37b40 /plugins/mod_presence.lua | |
parent | 90aa3a710b37162abe64ad36a0af03cb29da5822 (diff) | |
download | prosody-28c58565ace33870970010c9d195c5da5d9cf4d1.tar.gz prosody-28c58565ace33870970010c9d195c5da5d9cf4d1.zip |
rostermanager, mod_roster, mod_presence: Move pending roster items to roster metadata field
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r-- | plugins/mod_presence.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 9e8f37db..ab57a158 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -106,10 +106,8 @@ function handle_normal_presence(origin, stanza) res.presence.attr.to = nil; end end - if roster.pending then -- resend incoming subscription requests - for jid in pairs(roster.pending) do - origin.send(st.presence({type="subscribe", from=jid})); -- TODO add to attribute? Use original? - end + for jid in pairs(roster[false].pending) do -- resend incoming subscription requests + origin.send(st.presence({type="subscribe", from=jid})); -- TODO add to attribute? Use original? end local request = st.presence({type="subscribe", from=origin.username.."@"..origin.host}); for jid, item in pairs(roster) do -- resend outgoing subscription requests |