diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-17 14:19:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-17 14:19:41 +0200 |
commit | 6b306e33131a800f7a6c914f3ca6d65a81371019 (patch) | |
tree | 984252bd7cdf7fecc9daa3b62ca0206df61b5dbd | |
parent | 8f059290a719e2dd5aba81477749863c0c663350 (diff) | |
download | prosody-6b306e33131a800f7a6c914f3ca6d65a81371019.tar.gz prosody-6b306e33131a800f7a6c914f3ca6d65a81371019.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.
-rw-r--r-- | doc/doap.xml | 4 | ||||
-rw-r--r-- | plugins/muc/history.lib.lua | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/doc/doap.xml b/doc/doap.xml index 7e9ef815..0b507236 100644 --- a/doc/doap.xml +++ b/doc/doap.xml @@ -187,6 +187,10 @@ <implements> <xmpp:SupportedXep> <xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0091.html"/> + <xmpp:version>1.4</xmpp:version> + <xmpp:since>0.1</xmpp:since> + <xmpp:until>0.12</xmpp:until> + <xmpp:note>Gone from offline messages in 0.10.0, gone from MUC in 0.12</xmpp:note> </xmpp:SupportedXep> </implements> <implements> 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 |