Diff

plugins/mod_presence.lua @ 2228:3987078bb179

mod_presence: Removed an unnecessary compatibility workaround which was causing issues with unavailable presence exchange after subscription removal.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 26 Nov 2009 13:00:11 +0500
parent 2143:13ac68e8760b
child 2229:3b38ec879076
line wrap: on
line diff
--- 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