From 3f02552785287c43b024dd8fe955199533023142 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Wed, 18 Dec 2019 16:31:41 -0300 Subject: [PATCH] [FIX] Prevent multiple tap on send (Share Extension) (#1481) --- app/views/ShareView/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/ShareView/index.js b/app/views/ShareView/index.js index 5047e6926..049adfeef 100644 --- a/app/views/ShareView/index.js +++ b/app/views/ShareView/index.js @@ -86,9 +86,12 @@ class ShareView extends React.Component { bytesToSize = bytes => `${ (bytes / 1048576).toFixed(2) }MB`; _sendMessage = async() => { - const { isMedia } = this.state; - this.setState({ loading: true }); + const { isMedia, loading } = this.state; + if (loading) { + return; + } + this.setState({ loading: true }); if (isMedia) { await this.sendMediaMessage(); } else {