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
527c14b1
Commit
527c14b1
authored
Sep 10, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2133
parent
0e03640e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/templates/occupant.js
src/templates/occupant.js
+5
-4
No files found.
src/templates/occupant.js
View file @
527c14b1
...
...
@@ -6,14 +6,15 @@ const occupant_title = (o) => {
const
i18n_moderator_hint
=
__
(
'
This user is a moderator.
'
);
const
i18n_participant_hint
=
__
(
'
This user can send messages in this groupchat.
'
);
const
i18n_visitor_hint
=
__
(
'
This user can NOT send messages in this groupchat.
'
)
const
spaced_jid
=
`
${
o
.
jid
}
`
||
''
;
if
(
o
.
role
===
"
moderator
"
)
{
return
`
${
o
.
jid
}
${
i18n_moderator_hint
}
${
o
.
hint_occupant
}
`
;
return
`
${
spaced_jid
}
${
i18n_moderator_hint
}
${
o
.
hint_occupant
}
`
;
}
else
if
(
o
.
role
===
"
participant
"
)
{
return
`
${
o
.
jid
}
${
i18n_participant_hint
}
${
o
.
hint_occupant
}
`
;
return
`
${
spaced_jid
}
${
i18n_participant_hint
}
${
o
.
hint_occupant
}
`
;
}
else
if
(
o
.
role
===
"
visitor
"
)
{
return
`
${
o
.
jid
}
${
i18n_visitor_hint
}
${
o
.
hint_occupant
}
`
;
return
`
${
spaced_jid
}
${
i18n_visitor_hint
}
${
o
.
hint_occupant
}
`
;
}
else
if
(
!
[
"
visitor
"
,
"
participant
"
,
"
moderator
"
].
includes
(
o
.
role
))
{
return
`
${
o
.
jid
}
${
o
.
hint_occupant
}
`
;
return
`
${
spaced_jid
}
${
o
.
hint_occupant
}
`
;
}
}
...
...
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