The identifier you pass on the JoinChatAsync is the name for the chat and not the id that it will have. Assuming that you are invoking the function with ChannelType.Room , otherwise I will need more information about what you are trying to accomplish to be able to help you.
For more details about the inner workings of the Chat concept, there is the following page.