mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web/composer: prevent sending when loading media (#590)
This commit is contained in:
parent
f94d84b044
commit
5bb28d3216
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ const MessageComposer = () => {
|
|||
const canSend = Boolean(state.text || state.media || state.location)
|
||||
const onClickSend = (evt: React.FormEvent) => {
|
||||
evt.preventDefault()
|
||||
if (!canSend) {
|
||||
if (!canSend || loadingMedia) {
|
||||
return
|
||||
}
|
||||
doSendMessage(state)
|
||||
|
|
Loading…
Add table
Reference in a new issue