Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
055c4d21
Commit
055c4d21
authored
Feb 08, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New config setting `allow_public_bookmarks`
parent
4d77d0c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
CHANGES.md
CHANGES.md
+4
-0
docs/source/configuration.rst
docs/source/configuration.rst
+20
-0
src/converse-bookmarks.js
src/converse-bookmarks.js
+2
-1
No files found.
CHANGES.md
View file @
055c4d21
...
...
@@ -17,6 +17,10 @@ though they should be private._
### API changes
-
New API method
`_converse.disco.getIdentity`
to check whether a JID has a given identity.
### New configuration settings
-
New configuration setting
[
allow_public_bookmarks
](
https://conversejs.org/docs/html/configurations.html#allow-public-bookmarks
)
## 3.3.2 (2018-01-29)
### Bugfixes
...
...
docs/source/configuration.rst
View file @
055c4d21
...
...
@@ -118,6 +118,8 @@ allow_bookmarks
Enables/disables chatroom bookmarks functionality.
This setting is only applicable if the ``converse-bookmarks`` plugin is loaded.
See also: `allow_public_bookmarks`_
allow_chat_pending_contacts
---------------------------
...
...
@@ -190,6 +192,24 @@ allow_otr
Allow Off-the-record encryption of single-user chat messages.
allow_public_bookmarks
----------------------
* Default: ``false``
Some XMPP servers don't support private PEP/PubSub nodes, as required for
private bookmarks and outlined in `XEP-0223 <https://xmpp.org/extensions/xep-0223.html>`_.
Even though Converse.js asks for the bookmarks to be kept private (via the
`<publish-options>` XML node), the server simply ignores the privacy settings
and publishes the node contents under the default privacy setting, which makes
the information available to all roster contacts.
If your your XMPP server does not support `XEP-0223`'s ``#publish-options``
feature and you don't mind that your room bookmarks are visible to all
contacts, then you can set this setting to ``true``. Otherwise you won't be
able to have any room bookmarks at all for an account on that XMPP server.
allow_registration
------------------
...
...
src/converse-bookmarks.js
View file @
055c4d21
...
...
@@ -218,6 +218,7 @@
// configuration settings.
_converse
.
api
.
settings
.
update
({
allow_bookmarks
:
true
,
allow_public_bookmarks
:
false
,
hide_open_bookmarks
:
true
});
// Promises exposed by this plugin
...
...
@@ -540,7 +541,7 @@
const
identity
=
args
[
0
],
options_support
=
args
[
1
];
if
(
_
.
isNil
(
identity
)
||
!
options_support
.
supported
)
{
if
(
_
.
isNil
(
identity
)
||
(
!
options_support
.
supported
&&
!
_converse
.
allow_public_bookmarks
)
)
{
_converse
.
emit
(
'
bookmarksInitialized
'
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment