setChat

suspend fun setChat(loggedUserId: String?, chatId: String): ChatUI?

Set the current one-to-one chat by passing the other participant's userId

Return

ChatUI? the retrieved ChatUI if available

Parameters

loggedUserId

String optional logged user identification if the user has already connected or is connecting

chatId

String Chat id associated with the chat to be set