Qiscus Chat SDK Javascript Core v3.1.0
Changes:
- add clientId on mqtt connection
- add migration guide
- add
searchMessage
method
type Params = {
query: string
roomIds: number[]
userId?: string
type?: string
roomType?: string
page?: number
limit?: number
callback?: (messages?: model.IQMessage[], error?: Error) => void
}
function searchMessage ({ query, roomIds = [], userId, type, roomType, page, limit, callback }: Params): void | Promise<model.IQMessage[]>
- add
getFileList
method
type Params = {
roomIds?: number[]
fileType?: string
page?: number
limit?: number
callback?: (messages?: model.IQMessage[], error?: Error) => void
}
function getFileList ({ roomIds = [], fileType, page, limit, callback, }: Params): void | Promise<model.IQMessage[]>
- add getRoomUnreadCount method
getRoomUnreadCount(callback?: IQCallback2<number>): void | Promise<number>