Software /
code /
prosody
Diff
core/stanza_router.lua @ 172:71247788c7c7
Inbound subscription cancellation
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 25 Oct 2008 02:29:58 +0500 |
parent | 171:28f420d057a0 |
child | 173:f3a2af4d2ff2 |
line wrap: on
line diff
--- a/core/stanza_router.lua Sat Oct 25 02:16:29 2008 +0500 +++ b/core/stanza_router.lua Sat Oct 25 02:29:58 2008 +0500 @@ -211,7 +211,6 @@ elseif stanza.attr.type == "unsubscribe" then -- TODO elseif stanza.attr.type == "subscribed" then - -- TODO if rostermanager.process_inbound_subscription_approval(node, host, from_bare) then rostermanager.roster_push(node, host, from_bare); for k in pairs(user.sessions) do -- return presence for all resources @@ -226,7 +225,9 @@ pres.attr.from = nil; end elseif stanza.attr.type == "unsubscribed" then - -- TODO + if rostermanager.process_inbound_subscription_approval(node, host, from_bare) then + rostermanager.roster_push(node, host, from_bare); + end end -- discard any other type else -- sender is available or unavailable for k in pairs(user.sessions) do -- presence broadcast to all user resources