mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-05 16:55:03 -05:00
bugfix: don't crash if aes key could not be set before jingle transfer
This commit is contained in:
parent
5c017e5186
commit
9b70c7e68c
@ -368,7 +368,10 @@ public class JingleConnection implements Transferable {
|
||||
message, false);
|
||||
if (message.getEncryption() == Message.ENCRYPTION_OTR) {
|
||||
Conversation conversation = this.message.getConversation();
|
||||
this.mXmppConnectionService.renewSymmetricKey(conversation);
|
||||
if (!this.mXmppConnectionService.renewSymmetricKey(conversation)) {
|
||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": could not set symmetric key");
|
||||
cancel();
|
||||
}
|
||||
content.setFileOffer(this.file, true);
|
||||
this.file.setKey(conversation.getSymmetricKey());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user