From d0b10927e06a6cbbb3ad0968df1faff8162d4404 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 12 Oct 2016 10:30:54 -0700 Subject: [PATCH] Update message deletion protoxep based on Council feedback --- inbox/message-deletion.xml | 114 ----------------------------- inbox/message-retraction.xml | 138 +++++++++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+), 114 deletions(-) delete mode 100644 inbox/message-deletion.xml create mode 100644 inbox/message-retraction.xml diff --git a/inbox/message-deletion.xml b/inbox/message-deletion.xml deleted file mode 100644 index 12eda1a9..00000000 --- a/inbox/message-deletion.xml +++ /dev/null @@ -1,114 +0,0 @@ - - -%ents; -]> - - -
- Message Deletion - This specification defines a method for indicating that a message should be removed. - &LEGALNOTICE; - XXXX - Experimental - Standards Track - Standards - Council - - XMPP Core - - - - message-delete - &lance; - - 0.0.1 - 2015-07-07 - ljts -

First draft.

-
-
- -

Occasionally, a &xep0045; room moderator or admin might wish to remove certain chat messages from the room history as part of an effort to address and remedy issues such as message spam, indecent language for the venue, exposing private third-party personal information, etc. However, as with any content moderation tool, the removal request can only be considered as a hint and by itself can not prevent or undo any potential damage caused by the offending message, as clients which don't support message deletion are not obligated to enforce the deletion request and people could have seen or copied the message content already.

-
- -

If a client or service implements message deletion, it MUST specify the 'urn:xmpp:message-delete:0' feature in its service discovery information features as specified in &xep0030; and the Entity Capabilities profile specified in &xep0115;.

- - -]]> - - -... - -... - -]]> -
- -

When a user indicates to the client that a sent message (or a received message for MUC room moderators) is meant to be deleted, the client will send a new message containing a <remove /> element with the "urn:xmpp:message-delete:0" namespace, with an id attribute set to the id of the message to be removed.

- - This message contained information not meant for this room. -]]> - - -]]> -
- -

A receiving client can choose to remove the indicated message from whatever display is used for messages, from any stored history, or choose to display the fact that a message has been removed in another way.

-

A MUC or other service that supports message removal SHOULD prevent further distribution of the message by the service (e.g., by not replaying the message to new occupants joining the room, or omitting the message from history archive requests where possible).

-

A client MAY inform the user that a no-longer displayed message did previously exist and has been removed.

-

Clients and services MUST set the 'id' attribute on messages if they allow for message deletion.

-

The Sender MUST NOT send a removal request for a message with non-messaging payloads. For example, a sender MUST NOT send a removal for a roster item exchange request or a file transfer part.

-

A removal MUST only be processed when both the original message and removal request are received from the same full-JID (or from a JID of an appropriate admin or moderator in the case of a MUC room.)

-
- -

There can never be a guarantee that a removed message was never seen or otherwise distributed, and it is encouraged for clients and services when possible to inform users that no such guarantee exists.

-

When used in a &xep0045; context, removals send by non-moderators 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 removing a message SHOULD be disallowed, as the entity behind the full JID in the MUC may have changed.

-
- -

None.

-
- - -

The ®ISTRAR; includes 'urn:xmpp:message-delete:0' in its registry of protocol namespaces (see &NAMESPACES;).

-
    -
  • urn:xmpp:message-delete:0
  • -
-
- - &NSVER; - -
- - - - - - - - - - - - - - - - - ]]> - -
diff --git a/inbox/message-retraction.xml b/inbox/message-retraction.xml new file mode 100644 index 00000000..4ee424a8 --- /dev/null +++ b/inbox/message-retraction.xml @@ -0,0 +1,138 @@ + + +%ents; +]> + + +
+ Message Deletion + This specification defines a method for indicating that a message should be retracted. + &LEGALNOTICE; + XXXX + Experimental + Standards Track + Standards + Council + + XMPP Core + + + + message-retract + &lance; + + 0.0.1 + 2015-07-07 + ljts +

First draft.

+
+
+ +

Occasionally, a &xep0045; room moderator or admin might wish to retract certain chat messages from the room history as part of an effort to address and remedy issues such as message spam, indecent language for the venue, exposing private third-party personal information, etc. However, as with any content moderation tool, the retraction request can only be considered as a hint and by itself can not prevent or undo any potential damage caused by the offending message, as clients which don't support message deletion are not obligated to enforce the deletion request and people could have seen or copied the message content already.

+
+ +

If a client or service implements message deletion, it MUST specify the 'urn:xmpp:message-retract:0' feature in its service discovery information features as specified in &xep0030; and the Entity Capabilities profile specified in &xep0115;.

+ + +]]> + + +... + +... + +]]> +
+ +

When a user indicates to the client that a sent message (or a received message for MUC room moderators) is meant to be retracted, the client will send a new message containing a <retract /> element with the "urn:xmpp:message-retract:0" namespace, with an id attribute set to the id of the message to be retracted.

+ + This message contained information not meant for this room. +]]> + + +]]> +
+ +

An archiving service MAY replace the contents of a retracted message with a 'tombstone' recording the fact that the message was retracted (but otherwise preserving the fact that the message did once exist in order to aid synchronizing archives). To do so, the archiving service replaces the contents of the message with a <retracted/> element qualified by the 'urn:xmpp:message-retract:0' namespace, which SHOULD include a 'by' attribute specifying the JID of the entity that sent the retraction.

+ + + + + + + + + +]]> +
+ +

A receiving client can choose to remove the indicated message from whatever display is used for messages, from any stored history, or choose to display the fact that a message has been removed in another way.

+

A MUC or other service that supports message retraction SHOULD prevent further distribution of the message by the service (e.g., by not replaying the message to new occupants joining the room, omitting the message from history archive requests where possible, or replacing the original message with a 'tombstone').

+

A client MAY inform the user that a no-longer displayed message did previously exist and has been removed.

+

Clients and services MUST set the 'id' attribute on messages if they allow for message retraction.

+

The Sender MUST NOT send a retraction request for a message with non-messaging payloads. For example, a sender MUST NOT send a retraction for a roster item exchange request or a file transfer part.

+

A retraction MUST only be processed when both the original message and retraction request are received from the same full-JID (or from a JID of an appropriate admin or moderator in the case of a MUC room.)

+
+ +

There can never be a guarantee that a retracted message was never seen or otherwise distributed, and it is encouraged for clients and services when possible to inform users that no such guarantee exists.

+

When used in a &xep0045; context, retractions sent by non-moderators 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 retracting a message SHOULD be disallowed, as the entity behind the full JID in the MUC may have changed.

+
+ +

None.

+
+ + +

The ®ISTRAR; includes 'urn:xmpp:message-retract:0' in its registry of protocol namespaces (see &NAMESPACES;).

+
    +
  • urn:xmpp:message-retract:0
  • +
+
+ + &NSVER; + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + +