Skip to content

Qiscus Chat SDK Javascript Core v3.1.0

Compare
Choose a tag to compare
@apiep apiep released this 22 Oct 10:16
· 91 commits to master since this release

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>