aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-17 01:04:39 +0100
committerKim Alvefur <zash@zash.se>2019-01-17 01:04:39 +0100
commitaf6f44e477b137f500904f2d932c7a3ac2ae9195 (patch)
tree3414cf68b706e1cd970eefddaf7f03179af09515
parent447966dac6eee386ae717418733f275acc327b9e (diff)
downloadprosody-af6f44e477b137f500904f2d932c7a3ac2ae9195.tar.gz
prosody-af6f44e477b137f500904f2d932c7a3ac2ae9195.zip
mod_presence: Revert empty 'to' attribute of presence before presence/initial event (fixes #1296)
-rw-r--r--plugins/mod_presence.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 5056a3a3..268a2f0c 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -63,6 +63,7 @@ function handle_normal_presence(origin, stanza)
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