Browse Source

同步修改

symybb
曹衍涛 3 years ago
parent
commit
d9477dfb33
  1. 1
      Assets/Scripts/Common/ChatSystem/Items/UserInfoItemView.cs
  2. 5
      Assets/Scripts/Common/ChatSystem/PrivateChat/PrivateChatPanel.cs

1
Assets/Scripts/Common/ChatSystem/Items/UserInfoItemView.cs

@ -37,6 +37,7 @@ public class UserInfoItemView : MonoBehaviour
{
//发送创建频道消息
ChatManager.Instance.CreatePrivateChatChannel(data.UserInfo);
parentView.SetListItemCount0();
}
else
{

5
Assets/Scripts/Common/ChatSystem/PrivateChat/PrivateChatPanel.cs

@ -260,6 +260,10 @@ public class PrivateChatPanel : UIView
ChatInputField.ActivateInputField();
}
public void SetListItemCount0()
{
LoopListView.SetListItemCount(0, false);
}
/// <summary>
/// 刷新LoopList
/// </summary>
@ -270,6 +274,7 @@ public class PrivateChatPanel : UIView
// 更新前数据
int nextItemIndex = LoopListView.ItemTotalCount;
//增加新条目刷新UI
LoopListView.SetListItemCount(0, false);
LoopListView.SetListItemCount(ChatManager.Instance.Msgs[currentChannel.ID].Count, false);
if (nextItemIndex < ChatManager.Instance.Msgs[currentChannel.ID].Count)
{

Loading…
Cancel
Save