aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-03-06 21:52:35 +0100
committerChristian Schneppe <christian@pix-art.de>2019-03-06 21:52:35 +0100
commitfec6d7a90c443ef0ef86464bd2fb49cdc56d1587 (patch)
tree04ce4494a6d3cff84dcdc9cab864ab1483d5f156 /src/main/java
parent251513c9dc6fe475d7345208b7175477b601b3cc (diff)
double check that muc message is ours if true jid is known
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/parser/MessageParser.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java
index a1b6f498a..b9a132cf3 100644
--- a/src/main/java/de/pixart/messenger/parser/MessageParser.java
+++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java
@@ -610,8 +610,13 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
} else {
trueCounterpart = fallback;
}
- if (trueCounterpart != null && trueCounterpart.asBareJid().equals(account.getJid().asBareJid())) {
- status = isTypeGroupChat ? Message.STATUS_SEND_RECEIVED : Message.STATUS_SEND;
+ if (trueCounterpart != null) {
+ if (trueCounterpart.asBareJid().equals(account.getJid().asBareJid())) {
+ status = isTypeGroupChat ? Message.STATUS_SEND_RECEIVED : Message.STATUS_SEND;
+ } else {
+ status = Message.STATUS_RECEIVED;
+ message.setCarbon(false);
+ }
}
message.setStatus(status);
message.setTrueCounterpart(trueCounterpart);