Skip to content
Snippets Groups Projects
Commit 3f025527 authored by Djorkaeff Alexandre's avatar Djorkaeff Alexandre Committed by Diego Mello
Browse files

[FIX] Prevent multiple tap on send (Share Extension) (#1481)

parent 7307148b
No related branches found
No related tags found
2 merge requests!32Android changes,!31Ios changes
...@@ -86,9 +86,12 @@ class ShareView extends React.Component { ...@@ -86,9 +86,12 @@ class ShareView extends React.Component {
bytesToSize = bytes => `${ (bytes / 1048576).toFixed(2) }MB`; bytesToSize = bytes => `${ (bytes / 1048576).toFixed(2) }MB`;
_sendMessage = async() => { _sendMessage = async() => {
const { isMedia } = this.state; const { isMedia, loading } = this.state;
this.setState({ loading: true }); if (loading) {
return;
}
this.setState({ loading: true });
if (isMedia) { if (isMedia) {
await this.sendMediaMessage(); await this.sendMediaMessage();
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment