fix:点击私信消息但未读后会恢复默认状态

This commit is contained in:
zlzw 2022-09-06 17:46:50 +08:00
parent ecca0ca854
commit deb35bf5fe
2 changed files with 4 additions and 8 deletions

View File

@ -195,6 +195,7 @@ public class PDLIiveChatActivity extends FragmentActivity {
@Override @Override
protected void onDestroy() { protected void onDestroy() {
super.onDestroy(); super.onDestroy();
EventBus.getDefault().post(new io.rong.imlib.model.Message());
Bus.getOff(this); Bus.getOff(this);
} }

View File

@ -1009,7 +1009,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
changeMsgView(msg2, msg);
reloadIM(); reloadIM();
} }
@ -1704,11 +1703,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} else if (i == R.id.user_guard) { } else if (i == R.id.user_guard) {
// ((LiveActivity) mContext).openUserMoreListWindow(2, true); // ((LiveActivity) mContext).openUserMoreListWindow(2, true);
((LiveActivity) mContext).openNewGuardListWindow(); ((LiveActivity) mContext).openNewGuardListWindow();
} else if (i == R.id.room_msg) { } if (i == R.id.lt_trickery) {
changeMsgView(msg, msg2);
} else if (i == R.id.room_msg_user) {
changeMsgView(msg2, msg);
} else if (i == R.id.lt_trickery) {
showTrickeryDialog(); showTrickeryDialog();
} }
@ -1805,11 +1800,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (userInfo != null) { if (userInfo != null) {
ImgLoader.display(mContext, userInfo.getPortraitUri().toString(), msgUserIcon); ImgLoader.display(mContext, userInfo.getPortraitUri().toString(), msgUserIcon);
} }
break; return;
} }
} }
} }
changeMsgView(msg2,msg);
} }
@Override @Override