diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-22 20:11:49 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-22 20:49:04 +0100 |
commit | f70f713fad0c8b82cf18bcf612bddb78758b588b (patch) | |
tree | 7b53ea53bf15bcb203e4a0568bdf262924de39d7 /src/main/java/de/pixart/messenger | |
parent | 2222d323aeeafe1be71058e9ef93e9dcd25d9591 (diff) |
only extract stanza-id from live messages when disco feature is set
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/MessageParser.java | 4 |
1 files changed, 2 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 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); |