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
6dfc82da
Commit
6dfc82da
authored
Feb 24, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Native querying instead of using jquery
parent
2ae2a1b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/converse-muc.js
src/converse-muc.js
+13
-13
No files found.
src/converse-muc.js
View file @
6dfc82da
...
@@ -1700,29 +1700,29 @@
...
@@ -1700,29 +1700,29 @@
showErrorMessage
:
function
(
presence
)
{
showErrorMessage
:
function
(
presence
)
{
// We didn't enter the room, so we must remove it from the MUC add-on
// We didn't enter the room, so we must remove it from the MUC add-on
var
$error
=
$
(
presence
).
find
(
'
error
'
);
var
error
=
presence
.
querySelector
(
'
error
'
);
if
(
$error
.
attr
(
'
type
'
)
===
'
auth
'
)
{
if
(
error
.
getAttribute
(
'
type
'
)
===
'
auth
'
)
{
if
(
$error
.
find
(
'
not-authorized
'
).
length
)
{
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
not-authorized
'
))
)
{
this
.
renderPasswordForm
();
this
.
renderPasswordForm
();
}
else
if
(
$error
.
find
(
'
registration-required
'
).
length
)
{
}
else
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
registration-required
'
))
)
{
this
.
showDisconnectMessage
(
__
(
'
You are not on the member list of this room
'
));
this
.
showDisconnectMessage
(
__
(
'
You are not on the member list of this room
'
));
}
else
if
(
$error
.
find
(
'
forbidden
'
).
length
)
{
}
else
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
forbidden
'
))
)
{
this
.
showDisconnectMessage
(
__
(
'
You have been banned from this room
'
));
this
.
showDisconnectMessage
(
__
(
'
You have been banned from this room
'
));
}
}
}
else
if
(
$error
.
attr
(
'
type
'
)
===
'
modify
'
)
{
}
else
if
(
error
.
getAttribute
(
'
type
'
)
===
'
modify
'
)
{
if
(
$error
.
find
(
'
jid-malformed
'
).
length
)
{
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
jid-malformed
'
))
)
{
this
.
showDisconnectMessage
(
__
(
'
No nickname was specified
'
));
this
.
showDisconnectMessage
(
__
(
'
No nickname was specified
'
));
}
}
}
else
if
(
$error
.
attr
(
'
type
'
)
===
'
cancel
'
)
{
}
else
if
(
error
.
getAttribute
(
'
type
'
)
===
'
cancel
'
)
{
if
(
$error
.
find
(
'
not-allowed
'
).
length
)
{
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
not-allowed
'
))
)
{
this
.
showDisconnectMessage
(
__
(
'
You are not allowed to create new rooms
'
));
this
.
showDisconnectMessage
(
__
(
'
You are not allowed to create new rooms
'
));
}
else
if
(
$error
.
find
(
'
not-acceptable
'
).
length
)
{
}
else
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
not-acceptable
'
))
)
{
this
.
showDisconnectMessage
(
__
(
"
Your nickname doesn't conform to this room's policies
"
));
this
.
showDisconnectMessage
(
__
(
"
Your nickname doesn't conform to this room's policies
"
));
}
else
if
(
$error
.
find
(
'
conflict
'
).
length
)
{
}
else
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
conflict
'
))
)
{
this
.
onNicknameClash
(
presence
);
this
.
onNicknameClash
(
presence
);
}
else
if
(
$error
.
find
(
'
item-not-found
'
).
length
)
{
}
else
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
item-not-found
'
))
)
{
this
.
showDisconnectMessage
(
__
(
"
This room does not (yet) exist
"
));
this
.
showDisconnectMessage
(
__
(
"
This room does not (yet) exist
"
));
}
else
if
(
$error
.
find
(
'
service-unavailable
'
).
length
)
{
}
else
if
(
!
_
.
isNull
(
error
.
querySelector
(
'
service-unavailable
'
))
)
{
this
.
showDisconnectMessage
(
__
(
"
This room has reached its maximum number of occupants
"
));
this
.
showDisconnectMessage
(
__
(
"
This room has reached its maximum number of occupants
"
));
}
}
}
}
...
...
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