From 3da0d5adceca102502e4344bb368a3f9f33da3c6 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Fri, 19 Sep 2014 14:35:35 +0200 Subject: [PATCH] fixed #462 --- .../conversations/services/XmppConnectionService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index c019682e..a8900f71 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -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 (message.getEncryption() == Message.ENCRYPTION_NONE || saveEncryptedMessages()) { databaseBackend.createMessage(message); } } - conv.getMessages().add(message); if ((send) && (packet != null)) { - if (!account.getXmppConnection().getFeatures().sm() - && conv.getMode() != Conversation.MODE_MULTI) { - message.setStatus(Message.STATUS_SEND); - } sendMessagePacket(account, packet); } updateConversationUi();