Page MenuHomePhabricator

D4640.id15046.diff
No OneTemporary

D4640.id15046.diff

diff --git a/web/chat/chat-input-bar.react.js b/web/chat/chat-input-bar.react.js
--- a/web/chat/chat-input-bar.react.js
+++ b/web/chat/chat-input-bar.react.js
@@ -365,11 +365,12 @@
this.dispatchTextMessageAction(text, nextLocalID);
nextLocalID++;
}
-
- this.props.inputState.createMultimediaMessage(
- nextLocalID,
- this.props.threadInfo,
- );
+ if (this.props.inputState.pendingUploads.length > 0) {
+ this.props.inputState.createMultimediaMessage(
+ nextLocalID,
+ this.props.threadInfo,
+ );
+ }
}
dispatchTextMessageAction(text: string, nextLocalID: number) {

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 2:50 PM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607902
Default Alt Text
D4640.id15046.diff (639 B)

Event Timeline