chore: 创建对话后加入自己

oneRain 2020-05-19 16:58:46 +08:00
parent ec95b05d77
commit d2cdb7bd69
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ namespace LeanCloud.Realtime.Internal.Controller {
conversation.CreatorId = Client.Id; conversation.CreatorId = Client.Id;
conversation.ids = members != null ? conversation.ids = members != null ?
new HashSet<string>(members) : new HashSet<string>(); new HashSet<string>(members) : new HashSet<string>();
// 将自己加入
conversation.ids.Add(Client.Id);
conversation.CreatedAt = DateTime.Parse(response.ConvMessage.Cdate); conversation.CreatedAt = DateTime.Parse(response.ConvMessage.Cdate);
conversation.UpdatedAt = conversation.CreatedAt; conversation.UpdatedAt = conversation.CreatedAt;
return conversation; return conversation;