some bug fixes concerning 0byte files. fixes #1126
This commit is contained in:
parent
f99e234b88
commit
65e760aefd
|
@ -317,7 +317,7 @@ public class JingleConnection implements Downloadable {
|
|||
message.setBody(Long.toString(size));
|
||||
conversation.add(message);
|
||||
mXmppConnectionService.updateConversationUi();
|
||||
if (size <= this.mJingleConnectionManager
|
||||
if (size < this.mJingleConnectionManager
|
||||
.getAutoAcceptFileSize()) {
|
||||
Log.d(Config.LOGTAG, "auto accepting file from "
|
||||
+ packet.getFrom());
|
||||
|
|
|
@ -207,6 +207,7 @@ public class JingleInbandTransport extends JingleTransport {
|
|||
if (!established) {
|
||||
established = true;
|
||||
connected = true;
|
||||
this.receiveNextBlock("");
|
||||
this.account.getXmppConnection().sendIqPacket(
|
||||
packet.generateResponse(IqPacket.TYPE.RESULT), null);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue