mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
Make tombstone optional
This commit is contained in:
parent
33d082b6c5
commit
817517b9c1
11
xep-0369.xml
11
xep-0369.xml
@ -1233,7 +1233,7 @@ the participant is not be subscribed to all nodes associated with the channel (i
|
|||||||
|
|
||||||
<section3 topic="Retracting a Message" anchor="usecase-retract">
|
<section3 topic="Retracting a Message" anchor="usecase-retract">
|
||||||
<p>
|
<p>
|
||||||
A MIX channel MAY support message retraction, where the sender of a messages or an administrator deletes a message. If this is done the original message MUST be replaced by a tombstone. The protocol to request retraction does this by a message with a <retract> element as shown in the following example.
|
A MIX channel MAY support message retraction, where the sender of a messages or an authorized administrator deletes a message. If this is done the original message MAY be replaced by a tombstone. The protocol to request retraction does this by a message with a <retract> element as shown in the following example.
|
||||||
</p>
|
</p>
|
||||||
<example caption="User Retracts a Message"><![CDATA[
|
<example caption="User Retracts a Message"><![CDATA[
|
||||||
<message from='hag66@shakespeare.example/pda'
|
<message from='hag66@shakespeare.example/pda'
|
||||||
@ -1243,13 +1243,18 @@ the participant is not be subscribed to all nodes associated with the channel (i
|
|||||||
</message>
|
</message>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>
|
<p>
|
||||||
The MIX channel will allow a user to retract a message sent by the user if the 'Allow User Message Retraction' option is configured. The MIX channel will allow a user to retract any message if the user is in the group specified by the 'Administrator Message Retraction Rights' option.
|
The MIX channel will allow a user to retract a message sent by the user if the 'Allow User Message Retraction' option is configured. The MIX channel will allow an administrative user to retract any message if the user is in the group specified by the 'Administrator Message Retraction Rights' option.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
If the retraction message is accepted, it will be distributed to channel participants. This will allow retraction to happen in the MAM archive of each channel participant and to reflect the retraction in client GUI. A client receiving a retraction message SHOULD ensure that the retracted message is no longer displayed to the end user.
|
If the retraction message is accepted, it will be distributed to channel participants. This will allow retraction to happen in the MAM archive of each channel participant and to reflect the retraction in client GUI. A client receiving a retraction message SHOULD ensure that the retracted message is no longer displayed to the end user.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
When a message is retracted the original message <body> MUST be removed and MUST be replaced with a tombstone using the <retracted> element that shows the JID of user performing the retraction and the time of the retraction.
|
Two approaches to message retraction may be used. In the first approach, the retracted message is simply removed. This is appropriate where retraction is provided as a user service and the user has rights to remove messages sent from the record.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The second approach is to leave a tombstone, which if taken MUST be done in the following manner. This is appropriate where it is desired to leave a record of the message that was redcated.
|
||||||
|
With this approach, the original message <body> is removed and replaced with a tombstone using the <retracted> element that shows the JID of user performing the retraction and the time of the retraction.
|
||||||
</p>
|
</p>
|
||||||
<example caption="Retracted message tombstone in a MAM result"><![CDATA[
|
<example caption="Retracted message tombstone in a MAM result"><![CDATA[
|
||||||
<message id='aeb213' to='juliet@capulet.lit/chamber'>
|
<message id='aeb213' to='juliet@capulet.lit/chamber'>
|
||||||
|
Loading…
Reference in New Issue
Block a user