aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-10-28 16:52:16 +0200
committerfiaxh <git@lightrise.org>2022-11-20 22:18:22 +0100
commitd1fb22ebedca7dbbbd0f693baa3c38d99ab5c344 (patch)
tree53e4208f52e4dc06ef2ddfc45c216dd03599e61a
parentcdd22e404eca3db640b6f2f2789314f7cbb65de6 (diff)
downloaddino-d1fb22ebedca7dbbbd0f693baa3c38d99ab5c344.tar.gz
dino-d1fb22ebedca7dbbbd0f693baa3c38d99ab5c344.zip
Reactions: Fix reactions being differentiated by resource on first displaying
fixes #1297
-rw-r--r--libdino/src/service/reactions.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/service/reactions.vala b/libdino/src/service/reactions.vala
index 0006f4de..7323e1f5 100644
--- a/libdino/src/service/reactions.vala
+++ b/libdino/src/service/reactions.vala
@@ -393,6 +393,8 @@ public class Dino.Reactions : StreamInteractionModule, Object {
if (stanza.type_ == MessageStanza.TYPE_GROUPCHAT &&
signal_jid.equals(stream_interactor.get_module(MucManager.IDENTITY).get_own_jid(from_jid, account))) {
signal_jid = account.bare_jid;
+ } else if (stanza.type_ == MessageStanza.TYPE_CHAT) {
+ signal_jid = signal_jid.bare_jid;
}
foreach (string current_reaction in current_reactions) {