# HG changeset patch # User Kim Alvefur # Date 1567260525 -7200 # Node ID dd7e924c74ef27b7f92eb872d2db50aaa229b234 # Parent 224e681c4db2d6e19c0ea5b3cae7f500e23d5d30 MUC: Fix delay@from to be room JID (fixes #1416) diff -r 224e681c4db2 -r dd7e924c74ef plugins/muc/history.lib.lua --- 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);