Changeset

9788:f47b2ab877d0 0.11

mod_presence: Revert empty 'to' attribute of presence before presence/initial event (fixes #1296)
author Kim Alvefur <zash@zash.se>
date Thu, 17 Jan 2019 01:04:39 +0100
parents 9777:2e07d2f71599
children 9789:abd32bc33a9c
files plugins/mod_presence.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Thu Jan 10 13:07:22 2019 +0100
+++ b/plugins/mod_presence.lua	Thu Jan 17 01:04:39 2019 +0100
@@ -63,6 +63,7 @@
 			core_post_stanza(origin, stanza, true);
 		end
 	end
+	stanza.attr.to = nil;
 	if stanza.attr.type == nil and not origin.presence then -- initial presence
 		module:fire_event("presence/initial", { origin = origin, stanza = stanza } );
 		origin.presence = stanza; -- FIXME repeated later