diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index 00e4be293..3749b2e1b 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -484,6 +484,7 @@ OutgoingMessage.prototype = { sourceDevice: 1, content, pubKey: devicePubKey, + isFriendRequest: enableFallBackEncryption, }; }) ) @@ -504,10 +505,7 @@ OutgoingMessage.prototype = { this.timestamp, outgoingObject.ttl ); - if ( - outgoingObject.type === - textsecure.protobuf.Envelope.Type.FRIEND_REQUEST - ) { + if (outgoingObject.isFriendRequest) { const conversation = ConversationController.get(destination); if (conversation) { // Redundant for primary device but marks secondary devices as pending