少年修仙传客户端代码仓库
client_Hale
2018-09-03 489e938c6080586e48fded228e0711cc53ea125c
System/Chat/ChatRecently.cs
@@ -64,11 +64,14 @@
                    && ChatCtrl.Inst.PteChatID == friendModel.tempFriendData.PlayerID)
                {
                    ChatCtrl.Inst.PteChatName = friendModel.tempFriendData.PlayerName;
                    LanguageVerify.toPlayerLevel = friendModel.tempFriendData.LV;
                }
                else
                {
                    ChatCtrl.Inst.PteChatName = _dict != null && _dict.ContainsKey((uint)ChatCtrl.Inst.PteChatID) ?
                                    _dict[(uint)ChatCtrl.Inst.PteChatID].PlayerName : string.Empty;
                    LanguageVerify.toPlayerLevel = _dict != null && _dict.ContainsKey((uint)ChatCtrl.Inst.PteChatID) ?
                                    _dict[(uint)ChatCtrl.Inst.PteChatID].LV : 0;
                }
                ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
                m_RecentlyControl.m_Scorller.RefreshActiveCellViews();
@@ -89,6 +92,7 @@
            {
                ChatCtrl.Inst.PteChatID = (int)friendModel.tempFriendData.PlayerID;
                ChatCtrl.Inst.PteChatName = friendModel.tempFriendData.PlayerName;
                LanguageVerify.toPlayerLevel = friendModel.tempFriendData.LV;
                ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
                return;
            }
@@ -97,6 +101,7 @@
            {
                ChatCtrl.Inst.PteChatID = (int)_dict.Keys.First();
                ChatCtrl.Inst.PteChatName = _dict[(uint)ChatCtrl.Inst.PteChatID].PlayerName;
                LanguageVerify.toPlayerLevel = _dict[(uint)ChatCtrl.Inst.PteChatID].LV;
                ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
            }
        }