diff --git a/package.json b/package.json index 48e6368..5f0c313 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-im-sdk-rn", - "version": "3.8.3", + "version": "3.8.3-1", "description": "OpenIM SDK for react-native", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/types/entity.ts b/src/types/entity.ts index b70c614..a588603 100644 --- a/src/types/entity.ts +++ b/src/types/entity.ts @@ -391,7 +391,6 @@ export type SearchMessageResultItem = { export type AdvancedGetMessageResult = { isEnd: boolean; - lastMinSeq: number; errCode: number; errMsg: string; messageList: MessageItem[]; diff --git a/src/types/enum.ts b/src/types/enum.ts index 5ca634c..9cc15c4 100644 --- a/src/types/enum.ts +++ b/src/types/enum.ts @@ -134,3 +134,7 @@ export enum GroupMessageReaderFilter { Readed = 0, UnRead = 1, } +export enum ViewType { + History = 0, + Search = 1, +} \ No newline at end of file diff --git a/src/types/params.ts b/src/types/params.ts index 03c6f61..dd96a20 100644 --- a/src/types/params.ts +++ b/src/types/params.ts @@ -14,6 +14,7 @@ import type { LogLevel, MessageReceiveOptType, MessageType, + ViewType, } from './enum'; export type InitOptions = { @@ -350,9 +351,7 @@ export type SearchLocalParams = { }; export type GetAdvancedHistoryMsgParams = { - userID?: string; - groupID?: string; - lastMinSeq: number; + viewType: ViewType; count: number; startClientMsgID: string; conversationID: string;