Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

04. Conversation with another user

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 
}