Skip to content
Snippets Groups Projects
Commit 83e595f7 authored by ubermanu's avatar ubermanu
Browse files

fix the ui update when adding an emoji

parent da4dd6c7
No related branches found
Tags v0.5.100
2 merge requests!136Reactions, Retract upload...,!117Reactions
......@@ -91,8 +91,16 @@ converse.plugins.add('sib-reactions', {
// Force UI update in the model
if (update) {
const from_real_jid = _converse.bare_jid;
const reactions = message.get('reactions') || {};
reactions[from_real_jid] = {
emojis,
origin_id: reactions[from_real_jid] || null,
from_real_jid,
};
message.set('reactions', {}); // Forces refresh
message.save('reactions', emojis);
message.save('reactions', reactions);
}
// TODO: Remove
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment