chore: 完善 Dictionary 合并

oneRain 2020-05-27 12:46:01 +08:00
parent 8fd9a9f377
commit 5609509e34
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace LeanCloud.Realtime.Internal.Controller {
attrs["name"] = name;
}
if (properties != null) {
attrs = properties.Union(attrs)
attrs = properties.Union(attrs.Where(kv => !properties.ContainsKey(kv.Key)))
.ToDictionary(k => k.Key, v => v.Value);
}
conv.Attr = new JsonObjectMessage {