fixed default autoaccept file size and wrongly marked message

This commit is contained in:
Daniel Gultsch 2014-04-19 01:51:50 +02:00
parent 5c0873c7ca
commit 1235e3daca
2 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ public class JingleConnection {
public void onFileTransmitted(JingleFile file) { public void onFileTransmitted(JingleFile file) {
if (responder.equals(account.getFullJid())) { if (responder.equals(account.getFullJid())) {
sendSuccess(); sendSuccess();
mXmppConnectionService.markMessage(message, Message.STATUS_SEND); mXmppConnectionService.markMessage(message, Message.STATUS_RECIEVED);
} }
Log.d("xmppService","sucessfully transmitted file. sha1:"+file.getSha1Sum()); Log.d("xmppService","sucessfully transmitted file. sha1:"+file.getSha1Sum());
} }

View File

@ -120,11 +120,11 @@ public class JingleConnectionManager {
} }
public long getAutoAcceptFileSize() { public long getAutoAcceptFileSize() {
String config = this.xmppConnectionService.getPreferences().getString("auto_accept_file_size", "0"); String config = this.xmppConnectionService.getPreferences().getString("auto_accept_file_size", "524288");
try { try {
return Long.parseLong(config); return Long.parseLong(config);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
return 0; return 524288;
} }
} }
} }