diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-12-10 20:59:49 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-12-10 20:59:49 +0100 |
commit | 3c38201c20c2d591511723482e18d3b756496b48 (patch) | |
tree | 83c4bce3950e8602f2196b2ab2fad9490522490e /src/main/java/de | |
parent | 98feed20922473799a55a3356907878407e58597 (diff) |
read marker from mam. only trust true counterpart when mam:2 is being used
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/MessageParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java index 1bd0f4338..d1b69b0ea 100644 --- a/src/main/java/de/pixart/messenger/parser/MessageParser.java +++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java @@ -735,7 +735,7 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece } } else { final Jid fallback = conversation.getMucOptions().getTrueCounterpart(counterpart); - Jid trueJid = getTrueCounterpart(query != null ? mucUserElement : null, fallback); + Jid trueJid = getTrueCounterpart((query != null && query.safeToExtractTrueCounterpart()) ? mucUserElement : null, fallback); ReadByMarker readByMarker = ReadByMarker.from(counterpart, trueJid); if (message.addReadByMarker(readByMarker)) { Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": added read by (" + readByMarker.getRealJid() + ") to message '" + message.getBody() + "'"); |