fall back to jingle only in 1:1. fixes #2482

This commit is contained in:
Daniel Gultsch 2017-05-13 08:11:24 +02:00
parent 2f577097d1
commit 41b3df0d43

View file

@ -1186,7 +1186,8 @@ public class XmppConnectionService extends Service {
private void sendFileMessage(final Message message, final boolean delay) {
Log.d(Config.LOGTAG, "send file message");
final Account account = message.getConversation().getAccount();
if (account.httpUploadAvailable(fileBackend.getFile(message,false).getSize())) {
if (account.httpUploadAvailable(fileBackend.getFile(message,false).getSize())
|| message.getConversation().getMode() == Conversation.MODE_MULTI) {
mHttpConnectionManager.createNewUploadConnection(message, delay);
} else {
mJingleConnectionManager.createNewConnection(message);