Page MenuHomePhabricator

D13334.diff
No OneTemporary

D13334.diff

diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js
--- a/native/input/input-state-container.react.js
+++ b/native/input/input-state-container.react.js
@@ -573,11 +573,13 @@
parentThreadInfo: ?ThreadInfo,
): Promise<SendMessagePayload> {
try {
- await this.props.textMessageCreationSideEffectsFunc(
- messageInfo,
- threadInfo,
- parentThreadInfo,
- );
+ if (!threadTypeIsThick(threadInfo.type)) {
+ await this.props.textMessageCreationSideEffectsFunc(
+ messageInfo,
+ threadInfo,
+ parentThreadInfo,
+ );
+ }
const { localID } = messageInfo;
invariant(
localID !== null && localID !== undefined,
@@ -591,6 +593,13 @@
parentThreadInfo,
sidebarCreation,
);
+ if (threadTypeIsThick(threadInfo.type)) {
+ await this.props.textMessageCreationSideEffectsFunc(
+ messageInfo,
+ threadInfo,
+ parentThreadInfo,
+ );
+ }
this.pendingSidebarCreationMessageLocalIDs.delete(localID);
return result;
} catch (e) {
diff --git a/web/input/input-state-container.react.js b/web/input/input-state-container.react.js
--- a/web/input/input-state-container.react.js
+++ b/web/input/input-state-container.react.js
@@ -1368,11 +1368,13 @@
parentThreadInfo: ?ThreadInfo,
): Promise<SendMessagePayload> {
try {
- await this.props.textMessageCreationSideEffectsFunc(
- messageInfo,
- threadInfo,
- parentThreadInfo,
- );
+ if (!threadTypeIsThick(threadInfo.type)) {
+ await this.props.textMessageCreationSideEffectsFunc(
+ messageInfo,
+ threadInfo,
+ parentThreadInfo,
+ );
+ }
const { localID } = messageInfo;
invariant(
localID !== null && localID !== undefined,
@@ -1386,6 +1388,13 @@
parentThreadInfo,
sidebarCreation,
);
+ if (threadTypeIsThick(threadInfo.type)) {
+ await this.props.textMessageCreationSideEffectsFunc(
+ messageInfo,
+ threadInfo,
+ parentThreadInfo,
+ );
+ }
this.pendingSidebarCreationMessageLocalIDs.delete(localID);
return result;
} catch (e) {

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 9:35 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2593577
Default Alt Text
D13334.diff (2 KB)

Event Timeline