Changeset

7430:ad0b15f253ee

mod_presence: Re-probe for contacts presence after outgoing 'subscribed' (fixes #673)
author Kim Alvefur <zash@zash.se>
date Sat, 21 May 2016 19:10:03 +0200
parents 7398:206f9b0485ad
children 7433:7eec6f3c7300 7459:94af49ad657e
files plugins/mod_presence.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Tue Apr 19 18:58:30 2016 +0200
+++ b/plugins/mod_presence.lua	Sat May 21 19:10:03 2016 +0200
@@ -201,6 +201,7 @@
 		end
 		core_post_stanza(origin, stanza);
 		send_presence_of_available_resources(node, host, to_bare, origin);
+		core_post_stanza(origin, st.presence({ type = "probe", from = from_bare, to = to_bare }));
 	elseif stanza.attr.type == "unsubscribed" then
 		-- 1. send unavailable
 		-- 2. route stanza