Software /
code /
prosody
Comparison
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 |
parent | 7331:c8ad387aab1c |
child | 7344:81efa212db1e |
comparison
equal
deleted
inserted
replaced
7331:c8ad387aab1c | 7332:ba32289e8d0b |
---|---|
372 if subscription == "both" or subscription == "from" or pending then | 372 if subscription == "both" or subscription == "from" or pending then |
373 core_post_stanza(session, st.presence({type="unsubscribed", from=session.full_jid, to=jid})); | 373 core_post_stanza(session, st.presence({type="unsubscribed", from=session.full_jid, to=jid})); |
374 end | 374 end |
375 | 375 |
376 if subscription == "both" or subscription == "to" or ask then | 376 if subscription == "both" or subscription == "to" or ask then |
377 send_presence_of_available_resources(username, module.host, jid, session, st.presence({type="unavailable"})); | |
377 core_post_stanza(session, st.presence({type="unsubscribe", from=session.full_jid, to=jid})); | 378 core_post_stanza(session, st.presence({type="unsubscribe", from=session.full_jid, to=jid})); |
378 end | 379 end |
379 | 380 |
380 end, -1); | 381 end, -1); |
381 | 382 |