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