some bug fixes concerning 0byte files. fixes #1126

This commit is contained in:
iNPUTmice 2015-04-15 15:36:16 +02:00
parent f99e234b88
commit 65e760aefd
2 changed files with 2 additions and 1 deletions

View File

@ -317,7 +317,7 @@ public class JingleConnection implements Downloadable {
message.setBody(Long.toString(size)); message.setBody(Long.toString(size));
conversation.add(message); conversation.add(message);
mXmppConnectionService.updateConversationUi(); mXmppConnectionService.updateConversationUi();
if (size <= this.mJingleConnectionManager if (size < this.mJingleConnectionManager
.getAutoAcceptFileSize()) { .getAutoAcceptFileSize()) {
Log.d(Config.LOGTAG, "auto accepting file from " Log.d(Config.LOGTAG, "auto accepting file from "
+ packet.getFrom()); + packet.getFrom());

View File

@ -207,6 +207,7 @@ public class JingleInbandTransport extends JingleTransport {
if (!established) { if (!established) {
established = true; established = true;
connected = true; connected = true;
this.receiveNextBlock("");
this.account.getXmppConnection().sendIqPacket( this.account.getXmppConnection().sendIqPacket(
packet.generateResponse(IqPacket.TYPE.RESULT), null); packet.generateResponse(IqPacket.TYPE.RESULT), null);
} else { } else {