Page MenuHomePhorge

D13334.1768006571.diff
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

D13334.1768006571.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
Sat, Jan 10, 12:56 AM (6 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5912166
Default Alt Text
D13334.1768006571.diff (2 KB)

Event Timeline