mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
Handle file transmission properly in axolotl
This commit is contained in:
parent
43703870e8
commit
2045a71262
@ -755,11 +755,19 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Message.ENCRYPTION_AXOLOTL:
|
case Message.ENCRYPTION_AXOLOTL:
|
||||||
|
if (message.needsUploading()) {
|
||||||
|
if (account.httpUploadAvailable() || message.fixCounterpart()) {
|
||||||
|
this.sendFileMessage(message);
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
packet = account.getAxolotlService().fetchPacketFromCache(message);
|
packet = account.getAxolotlService().fetchPacketFromCache(message);
|
||||||
if (packet == null) {
|
if (packet == null) {
|
||||||
account.getAxolotlService().prepareMessage(message);
|
account.getAxolotlService().prepareMessage(message);
|
||||||
message.setAxolotlFingerprint(account.getAxolotlService().getOwnPublicKey().getFingerprint().replaceAll("\\s", ""));
|
message.setAxolotlFingerprint(account.getAxolotlService().getOwnPublicKey().getFingerprint().replaceAll("\\s", ""));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user