fail jingle file transfer if axolotl key message could not be created. fixes #1576

This commit is contained in:
Daniel Gultsch 2015-11-26 06:52:46 +01:00
parent a557d38e4d
commit ecb4615f2a
1 changed files with 5 additions and 1 deletions

View File

@ -221,7 +221,11 @@ public class JingleConnection implements Transferable {
conversation.getAccount().getAxolotlService().prepareKeyTransportMessage(conversation.getContact(), new OnMessageCreatedCallback() {
@Override
public void run(XmppAxolotlMessage xmppAxolotlMessage) {
init(message, xmppAxolotlMessage);
if (xmppAxolotlMessage != null) {
init(message, xmppAxolotlMessage);
} else {
fail();
}
}
});
} else {