From c38e145be7aa0c957d265d3e98eb48a67e9d3dd6 Mon Sep 17 00:00:00 2001 From: sachaaaaa <sacha@loki.network> Date: Mon, 30 Sep 2019 17:53:12 +1000 Subject: [PATCH] lint --- js/modules/loki_file_server_api.js | 4 +++- libtextsecure/message_receiver.js | 17 +++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/js/modules/loki_file_server_api.js b/js/modules/loki_file_server_api.js index e59a80a64..c20e8b069 100644 --- a/js/modules/loki_file_server_api.js +++ b/js/modules/loki_file_server_api.js @@ -34,7 +34,9 @@ class LokiFileServerAPI { ); } else { authorisations = [ - await libloki.storage.getGrantAuthorisationForSecondaryPubKey(this.ourKey), + await libloki.storage.getGrantAuthorisationForSecondaryPubKey( + this.ourKey + ), ]; } return this._setOurDeviceMapping(authorisations, isPrimary); diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 5b4db5575..bb23fbf9f 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -1068,7 +1068,9 @@ MessageReceiver.prototype.extend({ pairingAuthorisation, { dataMessage, syncMessage } ) { - const valid = await libloki.crypto.validateAuthorisation(pairingAuthorisation); + const valid = await libloki.crypto.validateAuthorisation( + pairingAuthorisation + ); const alreadySecondaryDevice = !!window.storage.get('isSecondaryDevice'); let removedFromCache = false; if (alreadySecondaryDevice) { @@ -1145,7 +1147,9 @@ MessageReceiver.prototype.extend({ ); }, async handleAuthorisationForContact(envelope) { - window.log.error('Unexpected pairing request/authorisation received, ignoring.'); + window.log.error( + 'Unexpected pairing request/authorisation received, ignoring.' + ); return this.removeFromCache(envelope); }, async handlePairingAuthorisationMessage(envelope, content) { @@ -1250,9 +1254,14 @@ MessageReceiver.prototype.extend({ } else { const senderPubKey = envelope.source; // fetch the device mapping from the server - const deviceMapping = await lokiFileServerAPI.getUserDeviceMapping(senderPubKey); + const deviceMapping = await lokiFileServerAPI.getUserDeviceMapping( + senderPubKey + ); // auto-accept friend request if the device is paired to one of our friend - const autoAccepted = await this.handleSecondaryDeviceFriendRequest(senderPubKey, deviceMapping); + const autoAccepted = await this.handleSecondaryDeviceFriendRequest( + senderPubKey, + deviceMapping + ); if (autoAccepted) { return this.removeFromCache(envelope); }