aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-17 14:19:41 +0200
committerKim Alvefur <zash@zash.se>2020-10-17 14:19:41 +0200
commitc7174791abdcce64bb8d532a52503ce4d4bd4e7f (patch)
tree984252bd7cdf7fecc9daa3b62ca0206df61b5dbd /plugins
parent543b2d7d0099a25ce0a1200df94557820f75786b (diff)
downloadprosody-c7174791abdcce64bb8d532a52503ce4d4bd4e7f.tar.gz
prosody-c7174791abdcce64bb8d532a52503ce4d4bd4e7f.zip
MUC: Remove XEP-0091: Legacy Delayed Delivery
Why do we still include this? Deprecated in 2007, obsoleted in 2009. Removes redundant timestamp that nobody should be looking at since many years and a redundant copy of the room JID.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/history.lib.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua
index 1b7167af..fdf65365 100644
--- a/plugins/muc/history.lib.lua
+++ b/plugins/muc/history.lib.lua
@@ -182,9 +182,6 @@ module:hook("muc-add-history", function(event)
stanza:tag("delay", { -- XEP-0203
xmlns = "urn:xmpp:delay", from = room.jid, stamp = stamp
}):up();
- stanza:tag("x", { -- XEP-0091 (deprecated)
- xmlns = "jabber:x:delay", from = room.jid, stamp = datetime.legacy()
- }):up();
local entry = { stanza = stanza, timestamp = ts };
table.insert(history, entry);
while #history > get_historylength(room) do table.remove(history, 1) end