join Exist Chat Room
public abstract void joinExistChatRoom(String chatRoomId, int defMessageCount, RongIMClient.OperationCallback callback)
Join an existing chatroom.
If the chatroom does not exist, joining will fail. When joining a chatroom, you can specify the number of messages to fetch.
Since
5.3.1: After joining a chatroom, if the network is disconnected and reconnected, the default number of messages fetched will be the same as the number of historical messages fetched during the initial join. Since the number of messages fetched is fixed, message duplication may occur, and the app needs to handle message deduplication.
Parameters
chat Room Id
The ID of the chatroom.
def Message Count
The number of messages to fetch when entering the chatroom. -1 means no messages will be fetched, 0 means 10 messages will be fetched, and the maximum number of messages that can be fetched is 50.
callback
The status callback.