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
edf7f6b8
Commit
edf7f6b8
authored
Apr 19, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show status messages via object creation
parent
8a7b2558
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
src/converse-chatview.js
src/converse-chatview.js
+1
-10
src/templates/status_message.html
src/templates/status_message.html
+0
-3
No files found.
src/converse-chatview.js
View file @
edf7f6b8
...
...
@@ -20,7 +20,6 @@ import tpl_info from "templates/info.html";
import
tpl_new_day
from
"
templates/new_day.html
"
;
import
tpl_spinner
from
"
templates/spinner.html
"
;
import
tpl_spoiler_button
from
"
templates/spoiler_button.html
"
;
import
tpl_status_message
from
"
templates/status_message.html
"
;
import
tpl_toolbar
from
"
templates/toolbar.html
"
;
import
tpl_toolbar_fileupload
from
"
templates/toolbar_fileupload.html
"
;
import
tpl_user_details_modal
from
"
templates/user_details_modal.js
"
;
...
...
@@ -1194,15 +1193,7 @@ converse.plugins.add('converse-chatview', {
}
else
if
(
show
===
'
online
'
)
{
text
=
__
(
'
%1$s is online
'
,
fullname
);
}
if
(
text
)
{
this
.
msgs_container
.
insertAdjacentHTML
(
'
beforeend
'
,
tpl_status_message
({
'
message
'
:
text
,
'
isodate
'
:
(
new
Date
()).
toISOString
(),
}));
this
.
scrollDown
();
}
text
&&
this
.
model
.
createMessage
({
'
message
'
:
text
,
'
type
'
:
'
info
'
});
}
},
...
...
src/templates/status_message.html
deleted
100644 → 0
View file @
8a7b2558
<div
class=
"message chat-info chat-status"
data-isodate=
"{{{o.isodate}}}"
data-status=
"{{{o.from}}}"
>
{{{o.message}}}
</div>
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