From 014b475af77c9db4867e97c854b0d0c47483958c Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 4 Jun 2020 09:20:44 +1000 Subject: [PATCH] lint --- integration_test/common.js | 10 +++++++--- integration_test/open_group_test.js | 8 ++++++-- libtextsecure/sendmessage.js | 11 ++++++----- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/integration_test/common.js b/integration_test/common.js index 4cd7474e6..43bf55897 100644 --- a/integration_test/common.js +++ b/integration_test/common.js @@ -324,7 +324,9 @@ module.exports = { async addFriendToNewClosedGroup(members, useSenderKeys) { const [app, ...others] = members; - await app.client.element(ConversationPage.conversationButtonSection).click(); + await app.client + .element(ConversationPage.conversationButtonSection) + .click(); await app.client.element(ConversationPage.createClosedGroupButton).click(); await this.setValueWrapper( @@ -567,7 +569,7 @@ module.exports = { console.warn('NO PUBKEY'); response.writeHead(400, { 'Content-Type': 'text/html' }); response.end(); - return; + return; } if (request.method === 'POST') { @@ -620,7 +622,9 @@ module.exports = { }, async joinOpenGroup(app, openGroupUrl, name) { - await app.client.element(ConversationPage.conversationButtonSection).click(); + await app.client + .element(ConversationPage.conversationButtonSection) + .click(); await app.client.element(ConversationPage.joinOpenGroupButton).click(); await this.setValueWrapper( diff --git a/integration_test/open_group_test.js b/integration_test/open_group_test.js index b1cf3f814..08a22d785 100644 --- a/integration_test/open_group_test.js +++ b/integration_test/open_group_test.js @@ -39,7 +39,9 @@ describe('Open groups', function() { ); // adding a second time the same open group - await app.client.element(ConversationPage.conversationButtonSection).click(); + await app.client + .element(ConversationPage.conversationButtonSection) + .click(); await app.client.element(ConversationPage.joinOpenGroupButton).click(); await common.setValueWrapper( @@ -64,7 +66,9 @@ describe('Open groups', function() { it('openGroup: can send message to open group', async () => { // join dev-chat group - await app.client.element(ConversationPage.conversationButtonSection).click(); + await app.client + .element(ConversationPage.conversationButtonSection) + .click(); await app.client.element(ConversationPage.joinOpenGroupButton).click(); await common.setValueWrapper( diff --git a/libtextsecure/sendmessage.js b/libtextsecure/sendmessage.js index 5be80da5b..606dd6e6b 100644 --- a/libtextsecure/sendmessage.js +++ b/libtextsecure/sendmessage.js @@ -695,7 +695,9 @@ MessageSender.prototype = { }) )) || []; // filter out our primary pubkey if it was added. - sessionContactsSecondary = sessionContactsSecondary.filter(c => c.id !== primaryDeviceKey); + sessionContactsSecondary = sessionContactsSecondary.filter( + c => c.id !== primaryDeviceKey + ); const contactsSet = new Set([ ...sessionContactsPrimary, @@ -707,10 +709,9 @@ MessageSender.prototype = { return Promise.resolve(); } - libloki.api.debug.logContactSync( - 'Triggering contact sync message with:', - [...contactsSet] - ); + libloki.api.debug.logContactSync('Triggering contact sync message with:', [ + ...contactsSet, + ]); // We need to sync across 3 contacts at a time // This is to avoid hitting storage server limit