Page MenuHomePhabricator

D4640.diff
No OneTemporary

D4640.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
Sat, Nov 30, 9:38 AM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600438
Default Alt Text
D4640.diff (639 B)

Event Timeline