@@ -15,6 +15,7 @@ import type {
1515 UserMessage ,
1616 UserMessageCreateParams ,
1717 UserMessageUpdateParams ,
18+ MessageListParams as SDKMessageListParams ,
1819} from '@sendbird/chat/message' ;
1920import type { EmojiContainer , SendbirdError , User } from '@sendbird/chat' ;
2021
@@ -51,23 +52,13 @@ import { useHandleChannelPubsubEvents } from './hooks/useHandleChannelPubsubEven
5152import { PublishingModuleType } from '../../internalInterfaces' ;
5253import { ChannelActionTypes } from './dux/actionTypes' ;
5354
54- export type MessageListParams = {
55- // https://sendbird.github.io/core-sdk-javascript/module-model_params_messageListParams-MessageListParams.html
56- replyType ?: string ,
57- messageType ?: string ,
58- prevResultSize ?: number ,
59- nextResultSize ?: number ,
60- reverse ?: boolean , // TODO: Deprecate this props, because it might not work
61- isInclusive ?: boolean ,
62- includeMetaArray ?: boolean ,
63- includeReactions ?: boolean ,
64- includeThreadInfo ?: boolean ,
65- includeParentMessageInfo ?: boolean ,
66- showSubchannelMessagesOnly ?: boolean ,
67- customTypes ?: Array < string > ,
68- senderUserIds ?: Array < string > ,
69- } ;
70-
55+ export interface MessageListParams extends Partial < SDKMessageListParams > { // make `prevResultSize` and `nextResultSize` to optional
56+ /**
57+ * @deprecated
58+ * It won't work even if you activate this props
59+ */
60+ reverse ?: boolean ; // TODO: Deprecate this props, because it might not work
61+ }
7162export type ChannelQueries = {
7263 messageListParams ?: MessageListParams ;
7364} ;
0 commit comments