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
09c3d30c
Commit
09c3d30c
authored
Oct 16, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure messages are marked as followups after re-render
parent
82239d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
dist/converse.js
dist/converse.js
+5
-1
src/converse-message-view.js
src/converse-message-view.js
+4
-1
No files found.
dist/converse.js
View file @
09c3d30c
...
...
@@ -67223,7 +67223,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
async render() {
let msg
;
const is_followup = u.hasClass('chat-msg--followup', this.el)
;
if (this.model.isOnlyChatStateNotification()) {
this.renderChatStateNotification();
...
...
@@ -67235,6 +67235,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
await this.renderChatMessage();
}
if (is_followup) {
u.addClass('chat-msg--followup', this.el);
}
return this.el;
},
src/converse-message-view.js
View file @
09c3d30c
...
...
@@ -69,7 +69,7 @@
},
async
render
()
{
let
msg
;
const
is_followup
=
u
.
hasClass
(
'
chat-msg--followup
'
,
this
.
el
)
;
if
(
this
.
model
.
isOnlyChatStateNotification
())
{
this
.
renderChatStateNotification
()
}
else
if
(
this
.
model
.
get
(
'
file
'
)
&&
!
this
.
model
.
get
(
'
oob_url
'
))
{
...
...
@@ -79,6 +79,9 @@
}
else
{
await
this
.
renderChatMessage
();
}
if
(
is_followup
)
{
u
.
addClass
(
'
chat-msg--followup
'
,
this
.
el
);
}
return
this
.
el
;
},
...
...
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