~singpolyma/cheogram-android

4b5db2fb45dbe65b9f660355d732cd04104fad8b — Daniel Gultsch 6 years ago ffb3eeb
read marker from mam. only trust true counterpart when mam:2 is being used
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/parser/MessageParser.java
M src/main/java/eu/siacs/conversations/parser/MessageParser.java => src/main/java/eu/siacs/conversations/parser/MessageParser.java +1 -1
@@ 750,7 750,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() + "'");