From 5609509e347683d31f99a3f72f3b5c7ffc4ff3c1 Mon Sep 17 00:00:00 2001 From: oneRain Date: Wed, 27 May 2020 12:46:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=AE=8C=E5=96=84=20Dictionary=20?= =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Realtime/Internal/Controller/LCIMConversationController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs b/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs index 1f23ead..68798b0 100644 --- a/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs +++ b/Realtime/Realtime/Internal/Controller/LCIMConversationController.cs @@ -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 {