Skip to content

Commit

Permalink
fix: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
lgz5689 committed Jan 10, 2025
1 parent 09bb1ad commit aa89602
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/types/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ export type SearchMessageResultItem = {

export type AdvancedGetMessageResult = {
isEnd: boolean;
lastMinSeq: number;
errCode: number;
errMsg: string;
messageList: MessageItem[];
Expand Down
4 changes: 4 additions & 0 deletions src/types/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,7 @@ export enum GroupMessageReaderFilter {
Readed = 0,
UnRead = 1,
}
export enum ViewType {
History = 0,
Search = 1,
}
5 changes: 2 additions & 3 deletions src/types/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type {
LogLevel,
MessageReceiveOptType,
MessageType,
ViewType,
} from './enum';

export type InitOptions = {
Expand Down Expand Up @@ -350,9 +351,7 @@ export type SearchLocalParams = {
};

export type GetAdvancedHistoryMsgParams = {
userID?: string;
groupID?: string;
lastMinSeq: number;
viewType: ViewType;
count: number;
startClientMsgID: string;
conversationID: string;
Expand Down

0 comments on commit aa89602

Please sign in to comment.