创建的方法如下
/// <summary>
/// 加入聊天的房间 没有就创建一个
/// </summary>
/// <param name="roodId">房间id</param>
/// <returns></returns>
async public Task<LCIMConversation> JoinRoot (LCIMClient client,string roodId)
{
ReadOnlyCollection<LCIMConversation> conv = await client.GetQuery ().WhereStartsWith ("name" , roodId).Find();
LCIMConversation channel = null;
//await client.GetConversation ("60a8d462c03e71141c4728d1");
if ( conv.Count > 0)
{
channel = conv [0];
}
else
{
channel = await client.CreateChatRoom (roodId);
}
await channel.Join ();
return channel;
}