Commit 1b520328 authored by JC Brand's avatar JC Brand

Wait until emojis are initialized...

before adding them to the message body
parent b3e34a06
...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment