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
e83b0ff3
Commit
e83b0ff3
authored
Jun 25, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update wording to clarify what /revoke means
parent
681c3a2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/muc.js
spec/muc.js
+4
-4
src/converse-muc-views.js
src/converse-muc-views.js
+2
-2
No files found.
spec/muc.js
View file @
e83b0ff3
...
@@ -2745,7 +2745,7 @@
...
@@ -2745,7 +2745,7 @@
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/voice: Allow muted user to post messages
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/voice: Allow muted user to post messages
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/topic: Set groupchat subject (alias for /subject)
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/topic: Set groupchat subject (alias for /subject)
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/subject: Set groupchat subject
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/subject: Set groupchat subject
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/revoke: Revoke
user
\'
s membership
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/revoke: Revoke
the user
\'
s current affiliation
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/register: Register your nickname
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/register: Register your nickname
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/owner: Grant ownership of this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/owner: Grant ownership of this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/op: Grant moderator role to user
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/op: Grant moderator role to user
'
);
...
@@ -2758,7 +2758,7 @@
...
@@ -2758,7 +2758,7 @@
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/destroy: Remove this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/destroy: Remove this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/deop: Change user role to participant
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/deop: Change user role to participant
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/clear: Clear the chat area
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/clear: Clear the chat area
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/ban: Ban user
from groupcha
t
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/ban: Ban user
by changing their affiliation to outcas
t
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/admin: Change user
\'
s affiliation to admin
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/admin: Change user
\'
s affiliation to admin
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
You can run the following commands
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
You can run the following commands
'
);
...
@@ -2817,7 +2817,7 @@
...
@@ -2817,7 +2817,7 @@
expect
(
info_messages
.
length
).
toBe
(
17
);
expect
(
info_messages
.
length
).
toBe
(
17
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/topic: Set groupchat subject (alias for /subject)
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/topic: Set groupchat subject (alias for /subject)
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/subject: Set groupchat subject
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/subject: Set groupchat subject
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/revoke: Revoke
user
\'
s membership
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/revoke: Revoke
the user
\'
s current affiliation
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/register: Register your nickname
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/register: Register your nickname
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/owner: Grant ownership of this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/owner: Grant ownership of this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/op: Grant moderator role to user
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/op: Grant moderator role to user
'
);
...
@@ -2829,7 +2829,7 @@
...
@@ -2829,7 +2829,7 @@
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/destroy: Remove this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/destroy: Remove this groupchat
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/deop: Change user role to participant
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/deop: Change user role to participant
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/clear: Clear the chat area
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/clear: Clear the chat area
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/ban: Ban user
from groupcha
t
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/ban: Ban user
by changing their affiliation to outcas
t
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/admin: Change user
\'
s affiliation to admin
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/admin: Change user
\'
s affiliation to admin
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
You can run the following commands
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
You can run the following commands
'
);
done
();
done
();
...
...
src/converse-muc-views.js
View file @
e83b0ff3
...
@@ -1009,7 +1009,7 @@ converse.plugins.add('converse-muc-views', {
...
@@ -1009,7 +1009,7 @@ converse.plugins.add('converse-muc-views', {
this
.
showHelpMessages
([
`<strong>
${
__
(
"
You can run the following commands
"
)}
</strong>`
]);
this
.
showHelpMessages
([
`<strong>
${
__
(
"
You can run the following commands
"
)}
</strong>`
]);
this
.
showHelpMessages
([
this
.
showHelpMessages
([
`<strong>/admin</strong>:
${
__
(
"
Change user's affiliation to admin
"
)}
`
,
`<strong>/admin</strong>:
${
__
(
"
Change user's affiliation to admin
"
)}
`
,
`<strong>/ban</strong>:
${
__
(
'
Ban user
from groupcha
t
'
)}
`
,
`<strong>/ban</strong>:
${
__
(
'
Ban user
by changing their affiliation to outcas
t
'
)}
`
,
`<strong>/clear</strong>:
${
__
(
'
Clear the chat area
'
)}
`
,
`<strong>/clear</strong>:
${
__
(
'
Clear the chat area
'
)}
`
,
`<strong>/deop</strong>:
${
__
(
'
Change user role to participant
'
)}
`
,
`<strong>/deop</strong>:
${
__
(
'
Change user role to participant
'
)}
`
,
`<strong>/destroy</strong>:
${
__
(
'
Remove this groupchat
'
)}
`
,
`<strong>/destroy</strong>:
${
__
(
'
Remove this groupchat
'
)}
`
,
...
@@ -1022,7 +1022,7 @@ converse.plugins.add('converse-muc-views', {
...
@@ -1022,7 +1022,7 @@ converse.plugins.add('converse-muc-views', {
`<strong>/op</strong>:
${
__
(
'
Grant moderator role to user
'
)}
`
,
`<strong>/op</strong>:
${
__
(
'
Grant moderator role to user
'
)}
`
,
`<strong>/owner</strong>:
${
__
(
'
Grant ownership of this groupchat
'
)}
`
,
`<strong>/owner</strong>:
${
__
(
'
Grant ownership of this groupchat
'
)}
`
,
`<strong>/register</strong>:
${
__
(
"
Register your nickname
"
)}
`
,
`<strong>/register</strong>:
${
__
(
"
Register your nickname
"
)}
`
,
`<strong>/revoke</strong>:
${
__
(
"
Revoke
user's membership
"
)}
`
,
`<strong>/revoke</strong>:
${
__
(
"
Revoke
the user's current affiliation
"
)}
`
,
`<strong>/subject</strong>:
${
__
(
'
Set groupchat subject
'
)}
`
,
`<strong>/subject</strong>:
${
__
(
'
Set groupchat subject
'
)}
`
,
`<strong>/topic</strong>:
${
__
(
'
Set groupchat subject (alias for /subject)
'
)}
`
,
`<strong>/topic</strong>:
${
__
(
'
Set groupchat subject (alias for /subject)
'
)}
`
,
`<strong>/voice</strong>:
${
__
(
'
Allow muted user to post messages
'
)}
`
`<strong>/voice</strong>:
${
__
(
'
Allow muted user to post messages
'
)}
`
...
...
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