plugins/mod_presence.lua
changeset 7335 ba32289e8d0b
parent 7334 c8ad387aab1c
child 7347 81efa212db1e
--- 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