From d4b711bcc9a9e71c5835276f8ac5130329707da5 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 24 八月 2018 16:33:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Chat/ChatRecently.cs | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/System/Chat/ChatRecently.cs b/System/Chat/ChatRecently.cs
index 096ddc8..ac23508 100644
--- a/System/Chat/ChatRecently.cs
+++ b/System/Chat/ChatRecently.cs
@@ -59,6 +59,17 @@
if(_cell.index!= ChatCtrl.Inst.PteChatID)
{
ChatCtrl.Inst.PteChatID = _cell.index;
+ var _dict = friendModel.GetFriendInfoDict((byte)GroupType.RecentContact);
+ if (friendModel.tempFriendData != null
+ && ChatCtrl.Inst.PteChatID == friendModel.tempFriendData.PlayerID)
+ {
+ ChatCtrl.Inst.PteChatName = friendModel.tempFriendData.PlayerName;
+ }
+ else
+ {
+ ChatCtrl.Inst.PteChatName = _dict != null && _dict.ContainsKey((uint)ChatCtrl.Inst.PteChatID) ?
+ _dict[(uint)ChatCtrl.Inst.PteChatID].PlayerName : string.Empty;
+ }
ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
m_RecentlyControl.m_Scorller.RefreshActiveCellViews();
}
@@ -77,6 +88,7 @@
if (friendModel.tempFriendData != null)
{
ChatCtrl.Inst.PteChatID = (int)friendModel.tempFriendData.PlayerID;
+ ChatCtrl.Inst.PteChatName = friendModel.tempFriendData.PlayerName;
ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
return;
}
@@ -84,6 +96,7 @@
if (_dict != null && _dict.Count > 0)
{
ChatCtrl.Inst.PteChatID = (int)_dict.Keys.First();
+ ChatCtrl.Inst.PteChatName = _dict[(uint)ChatCtrl.Inst.PteChatID].PlayerName;
ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
}
}
--
Gitblit v1.8.0