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
1b520328
Commit
1b520328
authored
Jun 24, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait until emojis are initialized...
before adding them to the message body
parent
b3e34a06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/templates/directives/body.js
src/templates/directives/body.js
+1
-0
No files found.
src/templates/directives/body.js
View file @
1b520328
...
@@ -32,6 +32,7 @@ class MessageBodyRenderer extends String {
...
@@ -32,6 +32,7 @@ class MessageBodyRenderer extends String {
let
list
=
await
Promise
.
all
(
u
.
addHyperlinks
(
text
));
let
list
=
await
Promise
.
all
(
u
.
addHyperlinks
(
text
));
await
api
.
waitUntil
(
'
emojisInitialized
'
);
list
=
list
.
reduce
((
acc
,
i
)
=>
isString
(
i
)
?
[...
acc
,
...
u
.
addEmoji
(
i
)]
:
[...
acc
,
i
],
[]);
list
=
list
.
reduce
((
acc
,
i
)
=>
isString
(
i
)
?
[...
acc
,
...
u
.
addEmoji
(
i
)]
:
[...
acc
,
i
],
[]);
const
addMentions
=
text
=>
addMentionsMarkup
(
text
,
this
.
model
.
get
(
'
references
'
),
this
.
model
.
collection
.
chatbox
)
const
addMentions
=
text
=>
addMentionsMarkup
(
text
,
this
.
model
.
get
(
'
references
'
),
this
.
model
.
collection
.
chatbox
)
...
...
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