aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-22 20:11:49 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-22 20:49:04 +0100
commitf70f713fad0c8b82cf18bcf612bddb78758b588b (patch)
tree7b53ea53bf15bcb203e4a0568bdf262924de39d7 /src/main/java/de
parent2222d323aeeafe1be71058e9ef93e9dcd25d9591 (diff)
only extract stanza-id from live messages when disco feature is set
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/parser/MessageParser.java4
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);