aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/message_processor.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2020-09-06 15:42:54 +0200
committerfiaxh <git@lightrise.org>2020-09-07 15:29:32 +0200
commitb60e7da28aad7532b71e92c766ed3cc2698c47c5 (patch)
treee944bf1e82a5d650c6cbd2695e9bb0d46609c488 /libdino/src/service/message_processor.vala
parent2d31d9d4706d6fea870f9081a1451448f032473d (diff)
downloaddino-b60e7da28aad7532b71e92c766ed3cc2698c47c5.tar.gz
dino-b60e7da28aad7532b71e92c766ed3cc2698c47c5.zip
Fix message duplication in MUC PMs
Diffstat (limited to 'libdino/src/service/message_processor.vala')
-rw-r--r--libdino/src/service/message_processor.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/service/message_processor.vala b/libdino/src/service/message_processor.vala
index 3e92e61f..5ddf86a6 100644
--- a/libdino/src/service/message_processor.vala
+++ b/libdino/src/service/message_processor.vala
@@ -598,7 +598,7 @@ public class MessageProcessor : StreamInteractionModule, Object {
message.local_time = now;
message.direction = Entities.Message.DIRECTION_SENT;
message.counterpart = conversation.counterpart;
- if (conversation.type_.is_muc_semantic()) {
+ if (conversation.type_ == Conversation.Type.GROUPCHAT) {
message.ourpart = stream_interactor.get_module(MucManager.IDENTITY).get_own_jid(conversation.counterpart, conversation.account) ?? conversation.account.bare_jid;
message.real_jid = conversation.account.bare_jid;
} else {