[FIX] Prevent multiple tap on send (Share Extension) (#1481)
This commit is contained in:
parent
7307148b3a
commit
3f02552785
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue