use same sm check inside xmppconnection and out

This commit is contained in:
Daniel Gultsch 2015-05-25 04:54:11 +02:00
parent a535d45ec3
commit 36034815ee
1 changed files with 1 additions and 1 deletions

View File

@ -921,7 +921,7 @@ public class XmppConnection implements Runnable {
++stanzasSent;
}
tagWriter.writeStanzaAsync(packet);
if (packet instanceof MessagePacket && packet.getId() != null && this.streamId != null) {
if (packet instanceof MessagePacket && packet.getId() != null && getFeatures().sm()) {
if (Config.EXTENDED_SM_LOGGING) {
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": requesting ack for message stanza #" + stanzasSent);
}