new channel()
session read message
Returns:
message:object
Methods
set(options)
Building session read message marks the entire session as read messages, and unread message number is 0 when pulling the session list
Example
let message = New Message('channel', id); message.set({chatType: 'singleChat', to: 'user1'})
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | -
Properties
|
Returns:
Void