Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32793191
D13334.1768006571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D13334.1768006571.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13334: Call textMessageCreationSideEffectsFunc after sending DM text message
Attached
Detach File
Event Timeline
Log In to Comment