Updating conversation list with newly joined group - React UI kit


We want to have users join a group when an event happens inside our app (eg. they join a course). We managed to have users join the groups with CometChat.joinGroup, but the conversation list of the user doesn’t update with the newly joined group unless they refresh or switch chat tabs.

How can we refresh the conversation list in real time whenever the logged in user joins a new group?