Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2788977
D13201.id43782.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
D13201.id43782.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
@@ -92,6 +92,7 @@
import {
threadTypeIsThick,
threadTypeIsSidebar,
+ thickThreadTypes,
} from 'lib/types/thread-types-enum.js';
import {
type ClientNewThinThreadRequest,
@@ -473,7 +474,6 @@
// TODO: this should be update according to thread creation logic
// (ENG-8567)
if (threadTypeIsThick(inputThreadInfo.type)) {
- const recipientIDs = inputThreadInfo.members.map(member => member.id);
void this.props.processAndSendDMOperation({
type: dmOperationSpecificationTypes.OUTBOUND,
op: {
@@ -485,8 +485,12 @@
text: messageInfo.text,
},
recipients: {
- type: 'some_users',
- userIDs: recipientIDs,
+ type: 'all_thread_members',
+ threadID:
+ inputThreadInfo.type === thickThreadTypes.THICK_SIDEBAR &&
+ inputThreadInfo.parentThreadID
+ ? inputThreadInfo.parentThreadID
+ : inputThreadInfo.id,
},
});
return;
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
@@ -87,6 +87,7 @@
import type { Dispatch } from 'lib/types/redux-types.js';
import { reportTypes } from 'lib/types/report-types.js';
import {
+ thickThreadTypes,
threadTypeIsSidebar,
threadTypeIsThick,
} from 'lib/types/thread-types-enum.js';
@@ -1283,7 +1284,6 @@
// TODO: this should be update according to thread creation logic
// (ENG-8567)
if (threadTypeIsThick(inputThreadInfo.type)) {
- const recipientIDs = inputThreadInfo.members.map(member => member.id);
void this.props.processAndSendDMOperation({
type: dmOperationSpecificationTypes.OUTBOUND,
op: {
@@ -1295,8 +1295,12 @@
text: messageInfo.text,
},
recipients: {
- type: 'some_users',
- userIDs: recipientIDs,
+ type: 'all_thread_members',
+ threadID:
+ inputThreadInfo.type === thickThreadTypes.THICK_SIDEBAR &&
+ inputThreadInfo.parentThreadID
+ ? inputThreadInfo.parentThreadID
+ : inputThreadInfo.id,
},
});
return;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 22, 8:37 AM (19 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2167966
Default Alt Text
D13201.id43782.diff (2 KB)
Attached To
Mode
D13201: [web][native] update text messages recipients
Attached
Detach File
Event Timeline
Log In to Comment