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
4bad10cd
Commit
4bad10cd
authored
Jan 17, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
muc-views: Fix mess in previous commit
parent
16d2fa3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/converse-muc-views.js
src/converse-muc-views.js
+8
-7
No files found.
src/converse-muc-views.js
View file @
4bad10cd
...
...
@@ -1963,16 +1963,17 @@ converse.plugins.add('converse-muc-views', {
},
setChatRoomSubject
()
{
const
subject
=
this
.
model
.
get
(
'
subject
'
);
if
(
!
subject
.
text
&&
!
subject
.
author
)
{
return
;
// Probably a new MUC
}
// For translators: the %1$s and %2$s parts will get
//
replaced by the user and topic text respectively
//
Example: Topic set by JC Brand to: Hello World!
const
subject
=
this
.
model
.
get
(
'
subject
'
),
message
=
subject
.
text
?
__
(
'
Topic set by %1$s
'
,
subject
.
author
)
:
__
(
'
Topic cleared by %1$s
'
,
subject
.
author
),
date
=
(
new
Date
()).
toISOString
();
const
author
=
subject
.
author
;
//
For translators: the %1$s part will get
//
replaced by the user's name.
// Example: Topic set by JC Brand
const
message
=
subject
.
text
?
__
(
'
Topic set by %1$s
'
,
author
)
:
__
(
'
Topic cleared by %1$s
'
,
author
);
const
date
=
(
new
Date
()).
toISOString
();
this
.
content
.
insertAdjacentHTML
(
'
beforeend
'
,
tpl_info
({
...
...
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