remove [移除已读未读标记]

This commit is contained in:
zlzw 2024-04-01 16:03:57 +08:00
parent 6945414be3
commit 79f0237849

View File

@ -74,7 +74,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter {
holder.itemView.setBackgroundColor(Color.parseColor("#00000000")); holder.itemView.setBackgroundColor(Color.parseColor("#00000000"));
ImageView readReceiptNew = holder.getConvertView().findViewById(R.id.rc_read_receipt_new); ImageView readReceiptNew = holder.getConvertView().findViewById(R.id.rc_read_receipt_new);
if(messageDirection==Message.MessageDirection.RECEIVE){ if (messageDirection == Message.MessageDirection.RECEIVE) {
RongIMClient.getInstance().syncConversationReadStatus(mDataList.get(position).getConversationType(), RongIMClient.getInstance().syncConversationReadStatus(mDataList.get(position).getConversationType(),
mDataList.get(position).getTargetId(), mDataList.get(position).getTargetId(),
mDataList.get(position).getSentTime(), mDataList.get(position).getSentTime(),
@ -86,7 +86,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter {
@Override @Override
public void onError(RongIMClient.ErrorCode errorCode) { public void onError(RongIMClient.ErrorCode errorCode) {
Log.i("聊天推送", "同步消息失败:"+errorCode); Log.i("聊天推送", "同步消息失败:" + errorCode);
} }
}); });
} }
@ -108,6 +108,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter {
if (content instanceof MessageChatTipsContent) { if (content instanceof MessageChatTipsContent) {
readReceiptNew.setVisibility(View.GONE); readReceiptNew.setVisibility(View.GONE);
} }
readReceiptNew.setVisibility(View.GONE);
} }
holder.getConvertView().setOnTouchListener(new View.OnTouchListener() { holder.getConvertView().setOnTouchListener(new View.OnTouchListener() {
@ -125,7 +126,7 @@ public class PDLiveMessageListAdapter extends MessageListAdapter {
if (holder.getView(R.id.left_liveStatus) != null) { if (holder.getView(R.id.left_liveStatus) != null) {
if (isLeftLive && !isSender) { if (isLeftLive && !isSender) {
holder.getView(R.id.left_liveStatus).setVisibility(View.VISIBLE); holder.getView(R.id.left_liveStatus).setVisibility(View.VISIBLE);
} else{ } else {
holder.getView(R.id.left_liveStatus).setVisibility(View.GONE); holder.getView(R.id.left_liveStatus).setVisibility(View.GONE);
} }
holder.getView(R.id.left_liveStatus).setOnClickListener(view -> { holder.getView(R.id.left_liveStatus).setOnClickListener(view -> {