From 708ebc36162789e3c26f7a8e43910e7b931ef662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Tue, 25 Jan 2022 16:49:06 +0100 Subject: [PATCH] Accept inbox/replies.xml as XEP-0461 --- xep-0461.xml | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++ xep.ent | 1 + 2 files changed, 132 insertions(+) create mode 100644 xep-0461.xml diff --git a/xep-0461.xml b/xep-0461.xml new file mode 100644 index 00000000..205fba35 --- /dev/null +++ b/xep-0461.xml @@ -0,0 +1,131 @@ + + + %ents; + ]> + + +
+ Message Replies + + This document defines a way to indicate that a message is a reply to a previous message. + + &LEGALNOTICE; + 0461 + Experimental + Standards Track + Standards + + + + reply + + Natalie + Wirth + nataliew@laposte.net + + + Marvin + Wissfeld + xsf@larma.de + jabber@larma.de + + + 0.1.0 + 2022-01-25 + XEP Editor (jsc) + Accepted by vote of Council on 2022-01-05. + + + 0.0.1 + 2022-01-01 + nw/mw + +

First draft.

+
+
+
+ + +

+ When commenting on a previous message, it is sometimes desired to clarify which message the comment refers to. + Currently, &xep0393; quotes are commonly used for that purpose. However, this format does not allow receiving + clients to properly identify the referenced message or to adjust the user interface accordingly. +

+

+ This specification defines a way to indicate that a message is a reply to a previous message. It does not intend + to provide means to create sub-threads for a message. +

+
+ + +

+ To indicate that a message is a reply, a <reply> element in the urn:xmpp:reply:0 namespace is placed in the + message stanza. The <reply> element has a 'to' attribute containing the full jid of the author of the + referenced message and an 'id' attribute containing the id of the referenced message. +

+ + We should bake a cake + + + + Great idea! + +]]> + + +

+ To provide a fallback for non-supporting clients, the sending client MAY include fallback text in the body and + indicate it via Compatibility Fallback. +

+ + + > Anna wrote: + > We should bake a cake + Great idea! + + + + + +]]> + +

+ The receiving client SHOULD NOT display the compatibility fallback if it renders the referenced message + alongside the reply in some way. However, if the receiving client does not display the referenced message, for + example because it doesn't know the referenced id, it MAY display the compatibility fallback instead. +

+
+
+ + +

Answers MUST NOT be be assumed to relate to any other messages than the referenced one.

+ +

+ For messages of type 'groupchat', the stanza's 'id' attribute MUST NOT be used for replies. Instead, in group + chat situations, the ID assigned to the stanza by the group chat itself must be used. This is discovered in a + <stanza-id> element with a 'by' attribute that matches the bare JID of the group chat, as defined + in &xep0359;. +

+

+ This implies that group chat messages without a &xep0359; stanza-id cannot be replied to. +

+

+ For other message types the sender should use the 'id' from a &xep0359; + <origin-id> if present, or the value of the 'id' attribute on the + <message> otherwise. +

+
+
+ + +

This document requires no interaction with &IANA;.

+
+ + +

This document requires no interaction with ®ISTRAR;.

+
+ +
diff --git a/xep.ent b/xep.ent index a6a36019..beb71f2e 100644 --- a/xep.ent +++ b/xep.ent @@ -1625,3 +1625,4 @@ IANA Service Location Protocol, Version 2 (SLPv2) Templates Message Fancying (XEP-0457) XEP-0457: Message Fancying <https://xmpp.org/extensions/xep-0457.html>." > XMPP Compliance Suites 2022 (XEP-0459) XEP-0459: XMPP Compliance Suites 2022 <https://xmpp.org/extensions/xep-0459.html>." > Pubsub Caching Hints (XEP-0460) XEP-0460: Pubsub Caching Hints <https://xmpp.org/extensions/xep-0460.html>." > +Message Replies (XEP-0461) XEP-0461: Message Replies <https://xmpp.org/extensions/xep-0461.html>." >