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

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) {
if (xmppAxolotlMessage != null) {
init(message, xmppAxolotlMessage);
} else {
fail();
}
}
});
} else {