| | |
| | | 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();
|
| | | }
|
| | |
| | | if (friendModel.tempFriendData != null)
|
| | | {
|
| | | ChatCtrl.Inst.PteChatID = (int)friendModel.tempFriendData.PlayerID;
|
| | | ChatCtrl.Inst.PteChatName = friendModel.tempFriendData.PlayerName;
|
| | | ChatCtrl.Inst.SelectRecentlyChat(ChatCtrl.Inst.PteChatID);
|
| | | return;
|
| | | }
|
| | |
| | | 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);
|
| | | }
|
| | | }
|