From cde2abe151ac8ecaacf46ad5d0cc43caae5b9a62 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Wed, 22 Feb 2017 17:01:14 +0100 Subject: [PATCH] XEP-0045: Add tag to MUC-PMs --- xep-0045.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xep-0045.xml b/xep-0045.xml index 6a496107..704ab8cf 100644 --- a/xep-0045.xml +++ b/xep-0045.xml @@ -1903,6 +1903,7 @@

Since each occupant has its own occupant JID, an occupant can send a "private message" to a selected occupant via the service by sending a message to the intended recipient's occupant JID. The message type SHOULD be "chat" and MUST NOT be "groupchat", but MAY be left unspecified (i.e., a normal message). This privilege is controlled by the "muc#roomconfig_allowpm" room configuration option.

+

To allow for proper synchronization of these messages to the user's other clients by &xep0280;, the sending client SHOULD add an <x/> element qualified by the 'http://jabber.org/protocol/muc#user' namespace to the message.

I'll give thee a wind. + ]]> -

The service is responsible for changing the 'from' address to the sender's occupant JID and delivering the message to the intended recipient's full JID.

+

The service is responsible for changing the 'from' address to the sender's occupant JID and delivering the message to the intended recipient's full JID. The service SHOULD add the <x/> element if the message does not contain it already.

I'll give thee a wind. + ]]>

If the sender attempts to send a private message of type "groupchat" to a particular occupant, the service MUST refuse to deliver the message (since the recipient's client would expect in-room messages to be of type "groupchat") and return a &badrequest; error to the sender: