Mercurial > prosody-hg
diff plugins/mod_presence.lua @ 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 | c8ad387aab1c |
| children | 81efa212db1e |
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
