From facb1242b6694ea2d4ed5c7dbd92e4a96d288ea3 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Tue, 9 Sep 2014 13:56:30 +0200 Subject: [PATCH] don't reset images from sending to waiting --- src/eu/siacs/conversations/services/XmppConnectionService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 247f602b4..5c5288de6 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1502,7 +1502,8 @@ public class XmppConnectionService extends Service { for (Conversation conversation : getConversations()) { if (conversation.getAccount() == account) { for (Message message : conversation.getMessages()) { - if (message.getStatus() == Message.STATUS_UNSEND) { + if (message.getType() != Message.TYPE_IMAGE + && message.getStatus() == Message.STATUS_UNSEND) { markMessage(message, Message.STATUS_WAITING); } }