mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 20:22:24 -05:00
Merge branch 'master' of athena.jabber.org:xmpp
This commit is contained in:
commit
22f4c7efc8
33
xep-0308.xml
33
xep-0308.xml
@ -7,10 +7,10 @@
|
|||||||
<xep>
|
<xep>
|
||||||
<header>
|
<header>
|
||||||
<title>Last Message Correction</title>
|
<title>Last Message Correction</title>
|
||||||
<abstract>This specification defines a method for marking a message as a correction of the last sent message.</abstract>
|
<abstract>This specification defines a method for indicating that a message is a correction of the last sent message.</abstract>
|
||||||
&LEGALNOTICE;
|
&LEGALNOTICE;
|
||||||
<number>0308</number>
|
<number>0308</number>
|
||||||
<status>Deferred</status>
|
<status>Experimental</status>
|
||||||
<lastcall>2012-08-17</lastcall>
|
<lastcall>2012-08-17</lastcall>
|
||||||
<type>Standards Track</type>
|
<type>Standards Track</type>
|
||||||
<sig>Standards</sig>
|
<sig>Standards</sig>
|
||||||
@ -22,6 +22,12 @@
|
|||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>NOT_YET_ASSIGNED</shortname>
|
<shortname>NOT_YET_ASSIGNED</shortname>
|
||||||
&ksmith;
|
&ksmith;
|
||||||
|
<revision>
|
||||||
|
<version>0.2</version>
|
||||||
|
<date>2013-02-24</date>
|
||||||
|
<initials>kis</initials>
|
||||||
|
<remark><p>Updates to address Last Call feedback.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.1</version>
|
<version>0.1</version>
|
||||||
<date>2011-11-10</date>
|
<date>2011-11-10</date>
|
||||||
@ -45,7 +51,7 @@
|
|||||||
<p>When sending a message, people often introduce typing errors and send a follow-up message to correct them. This specification allows the sending client to flag the second message as correcting the first.</p>
|
<p>When sending a message, people often introduce typing errors and send a follow-up message to correct them. This specification allows the sending client to flag the second message as correcting the first.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Discovering support' anchor='disco'>
|
<section1 topic='Discovering support' anchor='disco'>
|
||||||
<p>If a server implements message correction, it MUST specify the 'urn:xmpp:message-correct:0' feature in its service discovery information features as specified in &xep0030; and the Entity Capabilities profile specified in &xep0115;.</p>
|
<p>If a client implements message correction, it MUST specify the 'urn:xmpp:message-correct:0' feature in its service discovery information features as specified in &xep0030; and the Entity Capabilities profile specified in &xep0115;.</p>
|
||||||
<example caption='Client requests information about a chat partner's client'><![CDATA[
|
<example caption='Client requests information about a chat partner's client'><![CDATA[
|
||||||
<iq type='get'
|
<iq type='get'
|
||||||
from='romeo@montague.net/orchard'
|
from='romeo@montague.net/orchard'
|
||||||
@ -63,9 +69,10 @@
|
|||||||
...
|
...
|
||||||
</query>
|
</query>
|
||||||
</iq>]]></example>
|
</iq>]]></example>
|
||||||
|
<p>It is expected that clients will not send message corrections to clients that do not support them, as non-supporting clients will render these as duplicate (corrected) messages. There may be environments (particularly within a &xep0045; MUC room) where it is unknown whether some or all recipients support this extension, and implementors could choose to allow or disallow sending in such cases, as is appropriate for the intended deployments. It is suggested that when the support of recipients is not known a sending client will make the user aware of the potential for duplicate messages to be interpreted by the recipients.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Use Case' anchor='usecase'>
|
<section1 topic='Use Case' anchor='usecase'>
|
||||||
<p>When a user indicates to the client that he wants to correct the most recently sent message to a contact, the client will resend the corrected message with a new id, and with the replace payload refering to the previous message by id.</p>
|
<p>When a user indicates to the client that he wants to correct the most recently sent message to a contact, the client will resend the corrected message with a new id, and with the replace payload refering to the previous message by id. The receiving client then treats the newly received payloads as completely replacing all payloads of the original message.</p>
|
||||||
<example caption='User sends a message with a mistake in'><![CDATA[
|
<example caption='User sends a message with a mistake in'><![CDATA[
|
||||||
<message to='juliet@capulet.net/balcony' id='bad1'>
|
<message to='juliet@capulet.net/balcony' id='bad1'>
|
||||||
<body>But soft, what light through yonder airlock breaks?</body>
|
<body>But soft, what light through yonder airlock breaks?</body>
|
||||||
@ -81,11 +88,18 @@
|
|||||||
<p>A receiving client can choose to replace the previous message in whatever display is used for messages, or in any stored history, or can choose to display the correction in another way.</p>
|
<p>A receiving client can choose to replace the previous message in whatever display is used for messages, or in any stored history, or can choose to display the correction in another way.</p>
|
||||||
<p>A client SHOULD alert the user that the displayed message has been edited since it was originally sent.</p>
|
<p>A client SHOULD alert the user that the displayed message has been edited since it was originally sent.</p>
|
||||||
<p>Clients MUST send ids on messages if they allow the user to correct messages.</p>
|
<p>Clients MUST send ids on messages if they allow the user to correct messages.</p>
|
||||||
<p>To deal with multiple payloads, the sender MUST re-send the entire stanza with only the id and the corrections changed. It is expected that the receiver will then treat the new stanza as complete replacement, but such logic is ultimately the resposibility of the client.</p>
|
<p>To deal with multiple payloads, the sender MUST re-send the entire stanza, only altering id and the payloads being corrected and adding the 'replace' payload. It is expected that the receiver SHOULD then treat the new stanza as complete replacement for all the payloads received in the original stanza.</p>
|
||||||
<p> The Sender MUST NOT include a correction for a message with non-messaging payloads. For example, a sender MUST NOT include a correction for a roster item exchange request.</p>
|
<p>The Sender MUST NOT include a correction for a message with non-messaging payloads. For example, a sender MUST NOT include a correction for a roster item exchange request or a file transfer part.</p>
|
||||||
|
<p>A single message may be corrected multiple times by subsequent edits.</p>
|
||||||
|
<p>A correction MUST only be allowed when both the original message and correction are received from the same full-JID.</p>
|
||||||
|
<p>While it's not possible to prevent this protocol from being used in such a way, it is not intended that it provides a way to continue expanding a previous message indefinitely and clients, in as much as it is sensible, should present use of this extension only for correction rather than for providing a continuous stream, for which &xep0301; can be used instead.</p>
|
||||||
|
<p>Correction MUST only be used to change the details of a stanza (e.g. the message body) and not to change the nature of the stanza (e.g. correction MUST NOT be used to turn a chat message into a pubsub notification)</p>
|
||||||
|
<p>While it is possible to use this protocol to correct messages older than the most recent received from a full JID, such use is out of scope for this document and support for this SHOULD not be assumed without further negotiation.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Security Considerations' anchor='security'>
|
<section1 topic='Security Considerations' anchor='security'>
|
||||||
<p>The replacement message could have an entirely different meaning from the original message, so clients will need to warn users that the displayed message has been edited.</p>
|
<p>The replacement message could have an entirely different meaning from the original message, so clients will need to make users aware that the displayed message has been edited. It is also suggested that clients make the original message available in some way, although this UI consideration is out of the scope of this document.</p>
|
||||||
|
<p>There exist some payload types where correction is problematic, for some deployments. In particular, care needs to be taken that security labels from &xep0258; are handled in an appropriate manner for the security domains of a given deployment.</p>
|
||||||
|
<p>When used in a &xep0045; context, corrections must not be allowed (by the receiver) for messages received before the sender joined the room - particularly a full JID leaving the room then rejoining and correcting a message SHOULD be disallowd, as the entity behind the full JID in the MUC may have changed.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='IANA Considerations' anchor='iana'>
|
<section1 topic='IANA Considerations' anchor='iana'>
|
||||||
<p>None.</p>
|
<p>None.</p>
|
||||||
@ -103,7 +117,7 @@
|
|||||||
<var>
|
<var>
|
||||||
<name>urn:xmpp:message-correct:0</name>
|
<name>urn:xmpp:message-correct:0</name>
|
||||||
<desc>Support for message correction</desc>
|
<desc>Support for message correction</desc>
|
||||||
<doc>THIS PROTOXEP</doc>
|
<doc>XEP-0308</doc>
|
||||||
</var>]]></code>
|
</var>]]></code>
|
||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
@ -130,4 +144,7 @@
|
|||||||
</xs:schema>
|
</xs:schema>
|
||||||
]]></code>
|
]]></code>
|
||||||
</section1>
|
</section1>
|
||||||
|
<section1 topic='Acknowledgements' anchor='ack'>
|
||||||
|
<p>The author thanks those who provided feedback during Last Call: Kurt Zeilenga, Philipp Hancke, Dave Cridland, Mark Rejhon, Gunnar Helström, Andreas Kuckartz, Matthew Miller, Kim Alvefur and Peter Saint-Andre.</p>
|
||||||
|
</section1>
|
||||||
</xep>
|
</xep>
|
||||||
|
Loading…
Reference in New Issue
Block a user