Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
solid-xmpp-chat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Components
solid-xmpp-chat
Commits
83e595f7
Commit
83e595f7
authored
4 years ago
by
ubermanu
Browse files
Options
Downloads
Patches
Plain Diff
fix the ui update when adding an emoji
parent
da4dd6c7
No related branches found
Branches containing commit
Tags
v0.5.100
Tags containing commit
2 merge requests
!136
Reactions, Retract upload...
,
!117
Reactions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/sib-reactions.js
+9
-1
9 additions, 1 deletion
src/plugins/sib-reactions.js
with
9 additions
and
1 deletion
src/plugins/sib-reactions.js
+
9
−
1
View file @
83e595f7
...
...
@@ -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
'
,
emoji
s
);
message
.
save
(
'
reactions
'
,
reaction
s
);
}
// TODO: Remove
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment