Software /
code /
prosody
Changeset
7332:ba32289e8d0b
mod_presence: Send unavailable presence when roster items are removed (fixes #331)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 04 Apr 2016 17:15:47 +0200 |
parents | 7331:c8ad387aab1c |
children | 7333:9d0e65d919e8 |
files | plugins/mod_presence.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_presence.lua Mon Apr 04 17:15:10 2016 +0200 +++ b/plugins/mod_presence.lua Mon Apr 04 17:15:47 2016 +0200 @@ -374,6 +374,7 @@ end if subscription == "both" or subscription == "to" or ask then + send_presence_of_available_resources(username, module.host, jid, session, st.presence({type="unavailable"})); core_post_stanza(session, st.presence({type="unsubscribe", from=session.full_jid, to=jid})); end