You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
Himanshu Singh edited this page Oct 31, 2020
·
4 revisions
Case .01
To create conversation between two users use,
ChatClient.getInstance().openOrCreateChannel("participant_user_token") { channelId->//This is channel id of the conversation channel between two users
}
Case .02
Get messages of a current channel,
ChatClient.getInstance().getMessages(channelId) { messages->//This is list of messages of the channel between two users
}
Case .03
Get last message of a current channel,
ChatClient.getInstance().getLastMessageFromChannel(channelId) { message,userWhoSentIt->//This is the last message of the channel
}