Page MenuHomePhabricator

D13201.id43770.diff
No OneTemporary

D13201.id43770.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
@@ -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

Mime Type
text/plain
Expires
Sun, Sep 22, 10:08 AM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2167966
Default Alt Text
D13201.id43770.diff (2 KB)

Event Timeline