From 14367620d922db8df791e7597277d56d6f9f515d Mon Sep 17 00:00:00 2001 From: Beaudan Date: Tue, 12 Mar 2019 11:36:32 +1100 Subject: [PATCH] lint --- _locales/en/messages.json | 3 ++- js/background.js | 12 ++++++++++-- js/views/conversation_view.js | 4 ++-- ts/components/conversation/Message.tsx | 6 +----- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 50543b22c..fa09d7599 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1808,7 +1808,8 @@ }, "copiedMessage": { "message": "Copied message text", - "description": "A toast message telling the user that the message text was copied" + "description": + "A toast message telling the user that the message text was copied" }, "editDisplayName": { "message": "Edit display name", diff --git a/js/background.js b/js/background.js index b3b95f36c..7ae4592ad 100644 --- a/js/background.js +++ b/js/background.js @@ -624,13 +624,21 @@ }); Whisper.events.on('showToast', options => { - if (appView && appView.inboxView && appView.inboxView.conversation_stack) { + if ( + appView && + appView.inboxView && + appView.inboxView.conversation_stack + ) { appView.inboxView.conversation_stack.showToast(options); } }); Whisper.events.on('showConfirmationDialog', options => { - if (appView && appView.inboxView && appView.inboxView.conversation_stack) { + if ( + appView && + appView.inboxView && + appView.inboxView.conversation_stack + ) { appView.inboxView.conversation_stack.showConfirmationDialog(options); } }); diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 35a94839b..0cd857390 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -235,13 +235,13 @@ this.model.unblock(); }, onChangeNickname: () => { - this.model.changeNickname() + this.model.changeNickname(); }, onClearNickname: async () => { this.model.setNickname(null); }, onCopyPublicKey: () => { - this.model.copyPublicKey() + this.model.copyPublicKey(); }, }; }; diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index 043d342a5..54f8311d3 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -819,11 +819,7 @@ export class Message extends React.Component { {i18n('downloadAttachment')} ) : null} - - {i18n('copyMessage')} - + {i18n('copyMessage')}