Commit 78925b01 authored by JC Brand's avatar JC Brand

Updates #2126

Wait for emojis to be initialized before parsing MAM messages
parent 51ad0e37
......@@ -48,6 +48,7 @@ const MAMEnabledChat = {
},
async handleMAMResult (result, query, options, page_direction) {
await api.emojis.initialize();
const is_muc = this.get('type') === _converse.CHATROOMS_TYPE;
result.messages = result.messages.map(
s => (is_muc ? st.parseMUCMessage(s, this, _converse) : st.parseMessage(s, _converse))
......
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