From 7b9e578d8a0df555141f27c0d24ed9fbe67a3745 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Fri, 30 Aug 2019 11:33:56 +1000 Subject: [PATCH] lint --- js/views/standalone_registration_view.js | 4 +++- libtextsecure/outgoing_message.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/views/standalone_registration_view.js b/js/views/standalone_registration_view.js index ef64c4be7..423123a57 100644 --- a/js/views/standalone_registration_view.js +++ b/js/views/standalone_registration_view.js @@ -55,7 +55,9 @@ this.onValidatePassword(); - this.onSecondaryDeviceRegistered = this.onSecondaryDeviceRegistered.bind(this); + this.onSecondaryDeviceRegistered = this.onSecondaryDeviceRegistered.bind( + this + ); }, events: { 'validation input.number': 'onValidation', diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index 701b94419..a1feea2ae 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -370,7 +370,7 @@ OutgoingMessage.prototype = { dcodeIO.ByteBuffer.wrap(ciphertext.body, 'binary').toArrayBuffer() ); } - const getTTL = (type) => { + const getTTL = type => { switch (type) { case 'friend-request': return 4 * 24 * 60 * 60 * 1000; // 4 days for friend request message @@ -383,7 +383,7 @@ OutgoingMessage.prototype = { default: return (window.getMessageTTL() || 24) * 60 * 60 * 1000; // 1 day default for any other message } - } + }; const ttl = getTTL(this.messageType); return {