aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
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
commitb2d3ebb76dd22130d237b19c31e65558663f3394 (patch)
tree3414cf68b706e1cd970eefddaf7f03179af09515 /plugins/mod_presence.lua
parent5cd064035a3ea63781edff625c4f402ca7cb3670 (diff)
downloadprosody-b2d3ebb76dd22130d237b19c31e65558663f3394.tar.gz
prosody-b2d3ebb76dd22130d237b19c31e65558663f3394.zip
mod_presence: Revert empty 'to' attribute of presence before presence/initial event (fixes #1296)
Diffstat (limited to 'plugins/mod_presence.lua')
-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