This commit is contained in:
iNPUTmice 2014-09-19 14:35:35 +02:00
parent a11d4891b8
commit 3da0d5adce
1 changed files with 5 additions and 5 deletions

View File

@ -585,18 +585,18 @@ public class XmppConnectionService extends Service {
} }
} }
conv.getMessages().add(message);
if (!account.getXmppConnection().getFeatures().sm()
&& conv.getMode() != Conversation.MODE_MULTI) {
message.setStatus(Message.STATUS_SEND);
}
if (saveInDb) { if (saveInDb) {
if (message.getEncryption() == Message.ENCRYPTION_NONE if (message.getEncryption() == Message.ENCRYPTION_NONE
|| saveEncryptedMessages()) { || saveEncryptedMessages()) {
databaseBackend.createMessage(message); databaseBackend.createMessage(message);
} }
} }
conv.getMessages().add(message);
if ((send) && (packet != null)) { if ((send) && (packet != null)) {
if (!account.getXmppConnection().getFeatures().sm()
&& conv.getMode() != Conversation.MODE_MULTI) {
message.setStatus(Message.STATUS_SEND);
}
sendMessagePacket(account, packet); sendMessagePacket(account, packet);
} }
updateConversationUi(); updateConversationUi();