RongIMLib - v5.10.2 -> RongIMLib - v5.10.3

新增

IHarmonyOSPushConfig

鸿蒙推送配置

interface IHarmonyOSPushConfig {
  image?: string,
  category?: string
}

变更

ErrorCode

融云 IM 错误码

enum ErrorCode {
   RC_FILE_SIZE_EXCEED_LIMIT = 26106,   INVALID_PARAMETER_SIZE_NOT_FOUND = 26107,   INVALID_PARAMETER_EXTRA = 34314,}

PlatformInfo

平台信息

enum PlatformInfo {
   HarmonyOS = 6,}

IChatroomRejoinedSuccessed

interface IChatroomRejoinedSuccessed {
   joinTime: number,}

IChatroomUserChangeInfo

聊天室成员变更数据

interface IChatroomUserChangeInfo {
   userList: IChartroomUserAction[],}

IChatroomJoinResponse

聊天室加入成功返回值

interface IChatroomJoinResponse {
   joinTime: number,}

IPushConfig

推送配置

interface IPushConfig {
   harmonyOSConfig?: IHarmonyOSPushConfig,}

joinChatRoom

加入聊天室

// 变更前
function joinChatRoom(targetId: string, options: {
  count: number,
}): Promise<IAsyncRes<void>>
// 变更后
function joinChatRoom(targetId: string, options: {
  count: number,
  extra?: string,
}): Promise<IAsyncRes<void>>

joinExistChatRoom

加入已存在的聊天室

// 变更前
function joinExistChatRoom(targetId: string, options: {
  count: number,
}): Promise<IAsyncRes<IChatroomJoinResponse>>
// 变更后
function joinExistChatRoom(targetId: string, options: {
  count: number,
  extra?: string,
}): Promise<IAsyncRes<IChatroomJoinResponse>>