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
53520317
Commit
53520317
authored
May 21, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move `locked_muc_domain` and `muc_domain` to model
parent
9cb91512
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
src/converse-muc-views.js
src/converse-muc-views.js
+0
-7
src/headless/converse-muc.js
src/headless/converse-muc.js
+15
-8
No files found.
src/converse-muc-views.js
View file @
53520317
...
@@ -113,10 +113,8 @@ converse.plugins.add('converse-muc-views', {
...
@@ -113,10 +113,8 @@ converse.plugins.add('converse-muc-views', {
_converse
.
api
.
settings
.
update
({
_converse
.
api
.
settings
.
update
({
'
auto_list_rooms
'
:
false
,
'
auto_list_rooms
'
:
false
,
'
cache_muc_messages
'
:
true
,
'
cache_muc_messages
'
:
true
,
'
locked_muc_domain
'
:
false
,
'
locked_muc_nickname
'
:
false
,
'
locked_muc_nickname
'
:
false
,
'
muc_disable_slash_commands
'
:
false
,
'
muc_disable_slash_commands
'
:
false
,
'
muc_domain
'
:
undefined
,
'
muc_show_join_leave
'
:
true
,
'
muc_show_join_leave
'
:
true
,
'
muc_show_join_leave_status
'
:
true
,
'
muc_show_join_leave_status
'
:
true
,
'
roomconfig_whitelist
'
:
[],
'
roomconfig_whitelist
'
:
[],
...
@@ -125,11 +123,6 @@ converse.plugins.add('converse-muc-views', {
...
@@ -125,11 +123,6 @@ converse.plugins.add('converse-muc-views', {
}
}
});
});
if
(
_converse
.
locked_muc_domain
&&
!
_
.
isString
(
_converse
.
muc_domain
))
{
throw
new
Error
(
"
Config Error: it makes no sense to set locked_muc_domain
"
+
"
to true when muc_domain is not set
"
);
}
function
___
(
str
)
{
function
___
(
str
)
{
/* This is part of a hack to get gettext to scan strings to be
/* This is part of a hack to get gettext to scan strings to be
* translated. Strings we cannot send to the function above because
* translated. Strings we cannot send to the function above because
...
...
src/headless/converse-muc.js
View file @
53520317
...
@@ -112,17 +112,24 @@ converse.plugins.add('converse-muc', {
...
@@ -112,17 +112,24 @@ converse.plugins.add('converse-muc', {
// Refer to docs/source/configuration.rst for explanations of these
// Refer to docs/source/configuration.rst for explanations of these
// configuration settings.
// configuration settings.
_converse
.
api
.
settings
.
update
({
_converse
.
api
.
settings
.
update
({
allow_muc
:
true
,
'
allow_muc
'
:
true
,
allow_muc_invitations
:
true
,
'
allow_muc_invitations
'
:
true
,
auto_join_on_invite
:
false
,
'
auto_join_on_invite
'
:
false
,
auto_join_rooms
:
[],
'
auto_join_rooms
'
:
[],
auto_register_muc_nickname
:
false
,
'
auto_register_muc_nickname
'
:
false
,
muc_history_max_stanzas
:
undefined
,
'
locked_muc_domain
'
:
false
,
muc_instant_rooms
:
true
,
'
muc_domain
'
:
undefined
,
muc_nickname_from_jid
:
false
'
muc_history_max_stanzas
'
:
undefined
,
'
muc_instant_rooms
'
:
true
,
'
muc_nickname_from_jid
'
:
false
});
});
_converse
.
api
.
promises
.
add
([
'
roomsAutoJoined
'
]);
_converse
.
api
.
promises
.
add
([
'
roomsAutoJoined
'
]);
if
(
_converse
.
locked_muc_domain
&&
!
_
.
isString
(
_converse
.
muc_domain
))
{
throw
new
Error
(
"
Config Error: it makes no sense to set locked_muc_domain
"
+
"
to true when muc_domain is not set
"
);
}
async
function
openRoom
(
jid
)
{
async
function
openRoom
(
jid
)
{
if
(
!
u
.
isValidMUCJID
(
jid
))
{
if
(
!
u
.
isValidMUCJID
(
jid
))
{
...
...
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