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));
|
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());
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue