Changeset

10230:dd7e924c74ef 0.11 0.11.3

MUC: Fix delay@from to be room JID (fixes #1416)
author Kim Alvefur <zash@zash.se>
date Sat, 31 Aug 2019 16:08:45 +0200
parents 10211:224e681c4db2
children 10232:58685d77c07c 10236:37ddbfea561e
files plugins/muc/history.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/history.lib.lua	Tue Jul 30 08:01:22 2019 +0200
+++ b/plugins/muc/history.lib.lua	Sat Aug 31 16:08:45 2019 +0200
@@ -178,10 +178,10 @@
 	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);