From f70f713fad0c8b82cf18bcf612bddb78758b588b Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 22 Feb 2017 20:11:49 +0100 Subject: only extract stanza-id from live messages when disco feature is set --- src/main/java/de/pixart/messenger/parser/MessageParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/de/pixart/messenger') diff --git a/src/main/java/de/pixart/messenger/parser/MessageParser.java b/src/main/java/de/pixart/messenger/parser/MessageParser.java index 92283e80c..32ce25645 100644 --- a/src/main/java/de/pixart/messenger/parser/MessageParser.java +++ b/src/main/java/de/pixart/messenger/parser/MessageParser.java @@ -442,10 +442,10 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece final boolean safeToExtract; if (isTypeGroupChat) { by = conversation.getJid().toBareJid(); - safeToExtract = true; //conversation.getMucOptions().hasFeature(Xmlns.STANZA_IDS); + safeToExtract = conversation.getMucOptions().hasFeature(Xmlns.STANZA_IDS); } else { by = account.getJid().toBareJid(); - safeToExtract = true; //account.getXmppConnection().getFeatures().stanzaIds(); + safeToExtract = account.getXmppConnection().getFeatures().stanzaIds(); } if (safeToExtract) { serverMsgId = extractStanzaId(packet, by); -- cgit v1.2.3