bug fixed attachment related
This commit is contained in:
parent
fa85e61d6f
commit
7fddf80c09
2 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,6 @@ import { getUsername } from '../../../util/matrixUtil';
|
||||||
|
|
||||||
import Text from '../../atoms/text/Text';
|
import Text from '../../atoms/text/Text';
|
||||||
import RawIcon from '../../atoms/system-icons/RawIcon';
|
import RawIcon from '../../atoms/system-icons/RawIcon';
|
||||||
import Avatar from '../../atoms/avatar/Avatar';
|
|
||||||
import Tooltip from '../../atoms/tooltip/Tooltip';
|
import Tooltip from '../../atoms/tooltip/Tooltip';
|
||||||
|
|
||||||
import ReplyArrowIC from '../../../../public/res/ic/outlined/reply-arrow.svg';
|
import ReplyArrowIC from '../../../../public/res/ic/outlined/reply-arrow.svg';
|
||||||
|
|
|
@ -201,6 +201,7 @@ class RoomsInput extends EventEmitter {
|
||||||
this.roomIdToInput.set(roomId, input);
|
this.roomIdToInput.set(roomId, input);
|
||||||
if (input.attachment) {
|
if (input.attachment) {
|
||||||
await this.sendFile(roomId, input.attachment.file);
|
await this.sendFile(roomId, input.attachment.file);
|
||||||
|
if (!this.isSending(roomId)) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.getMessage(roomId).trim() !== '') {
|
if (this.getMessage(roomId).trim() !== '') {
|
||||||
|
|
Loading…
Reference in a new issue