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
protected void onDestroy() {
super.onDestroy();
EventBus.getDefault().post(new io.rong.imlib.model.Message());
Bus.getOff(this);
}

View File

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