do not keep files in waiting when file size exceeds http upload limit in groups. fixes #2533
This commit is contained in:
parent
2b9cdde558
commit
7cf360fabf
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue