diff options
author | Kim Alvefur <zash@zash.se> | 2019-08-31 16:08:45 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-08-31 16:08:45 +0200 |
commit | a280be7c083c132775efe5c8751ced5cadece49f (patch) | |
tree | 623ca01df67456ac0a1f56289a13f12fa7267290 /plugins/muc/history.lib.lua | |
parent | 8b12f4ace11725bb82cc0977cf01514af382f18d (diff) | |
download | prosody-a280be7c083c132775efe5c8751ced5cadece49f.tar.gz prosody-a280be7c083c132775efe5c8751ced5cadece49f.zip |
MUC: Fix delay@from to be room JID (fixes #1416)0.11.3
Diffstat (limited to 'plugins/muc/history.lib.lua')
-rw-r--r-- | plugins/muc/history.lib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua index 445aacb9..0d69c97d 100644 --- a/plugins/muc/history.lib.lua +++ b/plugins/muc/history.lib.lua @@ -178,10 +178,10 @@ module:hook("muc-add-history", function(event) local ts = gettime(); local stamp = datetime.datetime(ts); stanza:tag("delay", { -- XEP-0203 - xmlns = "urn:xmpp:delay", from = module.host, stamp = stamp + xmlns = "urn:xmpp:delay", from = room.jid, stamp = stamp }):up(); stanza:tag("x", { -- XEP-0091 (deprecated) - xmlns = "jabber:x:delay", from = module.host, stamp = datetime.legacy() + xmlns = "jabber:x:delay", from = room.jid, stamp = datetime.legacy() }):up(); local entry = { stanza = stanza, timestamp = ts }; table.insert(history, entry); |