From 7cf360fabffdd2b03d3e2a541d580c5bc95e6de4 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 1 Jul 2017 19:31:48 +0200 Subject: [PATCH] do not keep files in waiting when file size exceeds http upload limit in groups. fixes #2533 --- .../eu/siacs/conversations/services/XmppConnectionService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index d25bc43c3..065f4f1a5 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1231,6 +1231,7 @@ public class XmppConnectionService extends Service { case Message.ENCRYPTION_NONE: if (message.needsUploading()) { if (account.httpUploadAvailable(fileBackend.getFile(message,false).getSize()) + || conversation.getMode() == Conversation.MODE_MULTI || message.fixCounterpart()) { this.sendFileMessage(message, delay); } else { @@ -1244,6 +1245,7 @@ public class XmppConnectionService extends Service { case Message.ENCRYPTION_DECRYPTED: if (message.needsUploading()) { if (account.httpUploadAvailable(fileBackend.getFile(message,false).getSize()) + || conversation.getMode() == Conversation.MODE_MULTI || message.fixCounterpart()) { this.sendFileMessage(message, delay); } else { @@ -1281,6 +1283,7 @@ public class XmppConnectionService extends Service { message.setFingerprint(account.getAxolotlService().getOwnFingerprint()); if (message.needsUploading()) { if (account.httpUploadAvailable(fileBackend.getFile(message,false).getSize()) + || conversation.getMode() == Conversation.MODE_MULTI || message.fixCounterpart()) { this.sendFileMessage(message, delay); } else {