From 710275686a8d263c002746c8e635b7679b8dfc6e Mon Sep 17 00:00:00 2001 From: kanat Date: Fri, 6 Dec 2024 19:52:32 -0500 Subject: [PATCH] [CHA-365] missing thread_participants in search result --- src/channel.ts | 2 ++ src/types.ts | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/channel.ts b/src/channel.ts index 91dd819bd..c6ca38e52 100644 --- a/src/channel.ts +++ b/src/channel.ts @@ -60,6 +60,7 @@ import { AscDesc, PartialUpdateMemberAPIResponse, AIState, + MessageOptions, } from './types'; import { Role } from './permissions'; import { DEFAULT_QUERY_CHANNEL_MESSAGE_LIST_PAGE_SIZE } from './constants'; @@ -237,6 +238,7 @@ export class Channel; + message_options?: MessageOptions; query?: string; } = {}, ) { diff --git a/src/types.ts b/src/types.ts index 8a7c01e8c..cdb4feccf 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1713,6 +1713,10 @@ export type MessageFilters; +export type MessageOptions = { + include_thread_participants?: boolean; +}; + export type PrimitiveFilter = ObjectType | null; export type QueryFilter = NonNullable extends string | number | boolean @@ -2738,6 +2742,7 @@ export type SearchPayload; message_filter_conditions?: MessageFilters; + message_options?: MessageOptions; query?: string; sort?: Array<{ direction: AscDesc;