diff --git a/js/models/messages.js b/js/models/messages.js index 70f2f8b03..d3ea3b4e4 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -2045,6 +2045,7 @@ } if (message.isFriendRequest() && isSessionRequest) { + // We don't need to await the call below because we just want to send it off window.libloki.api.sendSessionEstablishedMessage(message.get('source')); confirm(); // Wether or not we accepted the FR, we exit early so background friend requests diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index deb8aa243..3192a31c6 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -1623,6 +1623,7 @@ MessageReceiver.prototype.extend({ // This should be removed once we add the new protocol if (envelope.type === textsecure.protobuf.Envelope.Type.FRIEND_REQUEST) { window.log.info('sent session established to', envelope.source); + // We don't need to await the call below because we just want to send it off window.libloki.api.sendSessionEstablishedMessage(envelope.source); }