From c4b8924efae6903e4f1669e04fd832580fde8240 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 4 Apr 2016 17:15:47 +0200 Subject: mod_presence: Send unavailable presence when roster items are removed (fixes #331) --- plugins/mod_presence.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_presence.lua') diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 5562fecf..d4f2f28d 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -374,6 +374,7 @@ module:hook("roster-item-removed", function (event) 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 -- cgit v1.2.3