From c29f2b61a50ee7a1b0c77d662b61a59d46ce7982 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 28 Sep 2019 20:58:31 +0200 Subject: [PATCH] XEP-0402: Clarify client behaviour wrt autojoin. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it a SHOULD that it joins MUCs on retrieval of autojoin='1' bookmarks, leaves them on autojoin='0' or no autojoin, and does the same when it’s the one modifying the bookmarks. --- xep-0402.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xep-0402.xml b/xep-0402.xml index 5b89f033..97f5be9a 100644 --- a/xep-0402.xml +++ b/xep-0402.xml @@ -144,7 +144,7 @@ -

Once connected, a client SHOULD first retrieve the current list of bookmarks:

+

Once connected, a client first retrieves the current list of bookmarks. It then SHOULD join every MUC identified by the items’ 'id' attribute that have an 'autojoin' attribute that is set to "true" or "1".

NOTE: A future version of this specification might refer to &xep0312; or a similar protocol to reduce the need for full synchronisation on each connection.

@@ -169,7 +169,7 @@ + autojoin='1'> JC @@ -181,6 +181,7 @@

Adding a bookmark means publishing a new item, with the bookmark JID as id, to the '&namespace;' node.

+

publish-options (as defined in XEP-0060) MUST be supported by the server in order to check that the node is correctly configured before publishing a new conference. This is especially important to avoid leaking your bookmarks to your contacts for instance.

@@ -244,7 +245,7 @@ -

When a client is sent an event from the Pubsub service for the '&namespace;' node, it MUST check the 'autojoin' attribute if present, and join the room immediately if the attribute is both present and true.

+

When a client is sent an event from the Pubsub service for the '&namespace;' node, it SHOULD join the room immediately if the 'autojoin' attribute is both present and true.

@@ -262,7 +263,7 @@ ]]> -

On the other hand, if the 'autojoin' attribute is absent or false, or when the event is a retract notification, the client MUST leave the room.

+

On the other hand, if the 'autojoin' attribute is absent or false, or when the event is a retract notification, the client SHOULD leave the room immediately.