bug fixed attachment related
authorunknown <ajbura@gmail.com>
Sun, 15 Aug 2021 13:27:05 +0000 (18:57 +0530)
committerunknown <ajbura@gmail.com>
Sun, 15 Aug 2021 13:27:05 +0000 (18:57 +0530)
src/app/molecules/message/Message.jsx
src/client/state/RoomsInput.js

index 6b332c6661a46b9612c799b46497f7dd0027093f..647b67284abfade646bc1a5a81981923b1b063a9 100644 (file)
@@ -13,7 +13,6 @@ import { getUsername } from '../../../util/matrixUtil';
 
 import Text from '../../atoms/text/Text';
 import RawIcon from '../../atoms/system-icons/RawIcon';
-import Avatar from '../../atoms/avatar/Avatar';
 import Tooltip from '../../atoms/tooltip/Tooltip';
 
 import ReplyArrowIC from '../../../../public/res/ic/outlined/reply-arrow.svg';
index 584fefa976436a60526c9835fe1cebf387ab2103..7e34d4b1ae7150c4ca48c6d8ccf332f7312abd3d 100644 (file)
@@ -201,6 +201,7 @@ class RoomsInput extends EventEmitter {
     this.roomIdToInput.set(roomId, input);
     if (input.attachment) {
       await this.sendFile(roomId, input.attachment.file);
+      if (!this.isSending(roomId)) return;
     }
 
     if (this.getMessage(roomId).trim() !== '') {