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
ed9d2a25
Commit
ed9d2a25
authored
Mar 08, 2019
by
Christoph Scholz
Committed by
JC Brand
Mar 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make it configurable whether to respect autojoin
parent
be156dee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
CHANGES.md
CHANGES.md
+1
-0
dist/converse.js
dist/converse.js
+3
-2
docs/source/configuration.rst
docs/source/configuration.rst
+10
-0
src/converse-bookmarks.js
src/converse-bookmarks.js
+3
-2
No files found.
CHANGES.md
View file @
ed9d2a25
...
...
@@ -17,6 +17,7 @@
-
#1437: List of groupchats in modal doesn't scroll
-
#1457: Wrong tooltip shown for "unbookmark" icon
-
#1479: Allow file upload by drag & drop also in MUCs
-
#1487: New config option
[
muc_respect_autojoin
](
https://conversejs.org/docs/html/configuration.html#muc-respect-autojoin
)
## 4.1.2 (2019-02-22)
...
...
dist/converse.js
View file @
ed9d2a25
...
...
@@ -48619,7 +48619,8 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
_converse.api.settings.update({
allow_bookmarks: true,
allow_public_bookmarks: false,
hide_open_bookmarks: true
hide_open_bookmarks: true,
muc_respect_autojoin: true
}); // Promises exposed by this plugin
...
...
@@ -48676,7 +48677,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
},
openBookmarkedRoom(bookmark) {
if (bookmark.get('autojoin')) {
if (
_converse.muc_respect_autojoin &&
bookmark.get('autojoin')) {
const groupchat = _converse.api.rooms.create(bookmark.get('jid'), bookmark.get('nick'));
if (!groupchat.get('hidden')) {
docs/source/configuration.rst
View file @
ed9d2a25
...
...
@@ -1014,6 +1014,16 @@ automatically be "john". If now john@differentdomain.com tries to join the
room, his nickname will be "john-2", and if john@somethingelse.com joins, then
his nickname will be "john-3", and so forth.
muc_respect_autojoin
--------------------
* Default; ``true``
Determines whether Converse will respect the autojoin-attribute of bookmarks. Per default
all MUCs with set autojoin flag in their respective bookmarks will be joined on
startup of Converse. When set to ``false`` no MUCs are automatically joined based on
their bookmarks.
muc_show_join_leave
-------------------
...
...
src/converse-bookmarks.js
View file @
ed9d2a25
...
...
@@ -202,7 +202,8 @@ converse.plugins.add('converse-bookmarks', {
_converse
.
api
.
settings
.
update
({
allow_bookmarks
:
true
,
allow_public_bookmarks
:
false
,
hide_open_bookmarks
:
true
hide_open_bookmarks
:
true
,
muc_respect_autojoin
:
true
});
// Promises exposed by this plugin
_converse
.
api
.
promises
.
add
(
'
bookmarksInitialized
'
);
...
...
@@ -250,7 +251,7 @@ converse.plugins.add('converse-bookmarks', {
},
openBookmarkedRoom
(
bookmark
)
{
if
(
bookmark
.
get
(
'
autojoin
'
))
{
if
(
_converse
.
muc_respect_autojoin
&&
bookmark
.
get
(
'
autojoin
'
))
{
const
groupchat
=
_converse
.
api
.
rooms
.
create
(
bookmark
.
get
(
'
jid
'
),
bookmark
.
get
(
'
nick
'
));
if
(
!
groupchat
.
get
(
'
hidden
'
))
{
groupchat
.
trigger
(
'
show
'
);
...
...
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