mod_presence: Removed an unnecessary compatibility workaround which was causing issues with unavailable presence exchange after subscription removal.

Thu, 26 Nov 2009 13:00:11 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 26 Nov 2009 13:00:11 +0500
changeset 2228
3987078bb179
parent 2227
1888368c58c5
child 2229
3b38ec879076

mod_presence: Removed an unnecessary compatibility workaround which was causing issues with unavailable presence exchange after subscription removal.

plugins/mod_presence.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_presence.lua	Thu Nov 26 12:57:24 2009 +0500
+++ b/plugins/mod_presence.lua	Thu Nov 26 13:00:11 2009 +0500
@@ -200,9 +200,6 @@
 			rostermanager.roster_push(node, host, to_bare);
 		end
 		core_route_stanza(origin, stanza);
-		-- COMPAT: Some legacy clients keep displaying unsubscribed contacts as online unless an unavailable presence is sent:
-		send_presence_of_available_resources(node, host, to_bare, origin, core_route_stanza,
-			st.presence({ type="unavailable", from=from_bare, to=to_bare, id=stanza.attr.id }));
 	end
 	stanza.attr.from, stanza.attr.to = st_from, st_to;
 end

mercurial