From b14f693c2eea92ad4e35b6a299223ca81efde294 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Tue, 23 Sep 2014 11:49:17 +0200 Subject: dont mark message as send on resend --- src/eu/siacs/conversations/services/XmppConnectionService.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/eu/siacs/conversations/services') diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index f80bb9ef..db3ee2b9 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -664,8 +664,13 @@ public class XmppConnectionService extends Service { } } if (packet != null) { + if (!account.getXmppConnection().getFeatures().sm() + && message.getConversation().getMode() != Conversation.MODE_MULTI) { + markMessage(message, Message.STATUS_SEND); + } else { + markMessage(message, Message.STATUS_UNSEND); + } sendMessagePacket(account, packet); - markMessage(message, Message.STATUS_SEND); } } -- cgit v1.2.3