mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -05:00
fixed default autoaccept file size and wrongly marked message
This commit is contained in:
parent
5c0873c7ca
commit
1235e3daca
@ -302,7 +302,7 @@ public class JingleConnection {
|
||||
public void onFileTransmitted(JingleFile file) {
|
||||
if (responder.equals(account.getFullJid())) {
|
||||
sendSuccess();
|
||||
mXmppConnectionService.markMessage(message, Message.STATUS_SEND);
|
||||
mXmppConnectionService.markMessage(message, Message.STATUS_RECIEVED);
|
||||
}
|
||||
Log.d("xmppService","sucessfully transmitted file. sha1:"+file.getSha1Sum());
|
||||
}
|
||||
|
@ -120,11 +120,11 @@ public class JingleConnectionManager {
|
||||
}
|
||||
|
||||
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 {
|
||||
return Long.parseLong(config);
|
||||
} catch (NumberFormatException e) {
|
||||
return 0;
|
||||
return 524288;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user