Handle file transmission properly in axolotl
This commit is contained in:
parent
43703870e8
commit
2045a71262
|
@ -755,10 +755,18 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Message.ENCRYPTION_AXOLOTL:
|
case Message.ENCRYPTION_AXOLOTL:
|
||||||
packet = account.getAxolotlService().fetchPacketFromCache(message);
|
if (message.needsUploading()) {
|
||||||
if (packet == null) {
|
if (account.httpUploadAvailable() || message.fixCounterpart()) {
|
||||||
account.getAxolotlService().prepareMessage(message);
|
this.sendFileMessage(message);
|
||||||
message.setAxolotlFingerprint(account.getAxolotlService().getOwnPublicKey().getFingerprint().replaceAll("\\s", ""));
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
packet = account.getAxolotlService().fetchPacketFromCache(message);
|
||||||
|
if (packet == null) {
|
||||||
|
account.getAxolotlService().prepareMessage(message);
|
||||||
|
message.setAxolotlFingerprint(account.getAxolotlService().getOwnPublicKey().getFingerprint().replaceAll("\\s", ""));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue