From 97660b2b04c1f3faafec0947604f0f4bea286d48 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 25 Jul 2022 16:04:16 +0800 Subject: [PATCH] 11111 --- live/src/main/res/layout/activity_pd_chat.xml | 15 ++++++++++++--- .../utils/PDLiveCustomConversationProvider.java | 14 +------------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/live/src/main/res/layout/activity_pd_chat.xml b/live/src/main/res/layout/activity_pd_chat.xml index 0b134e005..884c302e1 100644 --- a/live/src/main/res/layout/activity_pd_chat.xml +++ b/live/src/main/res/layout/activity_pd_chat.xml @@ -2,14 +2,23 @@ + + android:background="@color/white" + android:paddingTop="10dp" /> \ No newline at end of file diff --git a/main/src/main/java/com/yunbao/main/utils/PDLiveCustomConversationProvider.java b/main/src/main/java/com/yunbao/main/utils/PDLiveCustomConversationProvider.java index d2bff323c..838117957 100644 --- a/main/src/main/java/com/yunbao/main/utils/PDLiveCustomConversationProvider.java +++ b/main/src/main/java/com/yunbao/main/utils/PDLiveCustomConversationProvider.java @@ -5,8 +5,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; -import com.yunbao.common.bean.IMLoginModel; -import com.yunbao.common.manager.IMLoginManager; import com.yunbao.main.R; import java.util.List; @@ -45,17 +43,7 @@ public class PDLiveCustomConversationProvider extends BaseConversationProvider { //根据业务需要,自定义处理 super.bindViewHolder(holder, uiConversation, position, list, listener); ImageView readReceipt = holder.itemView.findViewById(com.yunbao.live.R.id.rc_conversation_read_receipt); -// IMLoginModel userInfo = IMLoginManager.get(holder.getContext()).getUserInfo(); -// if (String.valueOf(userInfo.getId()).equals(uiConversation.mCore.getSenderUserId())) { -// Message.SentStatus sentStatus = uiConversation.mCore.getSentStatus(); -// if (sentStatus == Message.SentStatus.READ) { -// -// } else { -// -// } -// } else { -// readReceipt.setVisibility(View.GONE); -// } + readReceipt.setVisibility(View.VISIBLE); if (RongConfigCenter.featureConfig().isReadReceiptConversationType(Conversation.ConversationType.PRIVATE) && uiConversation.mCore.getSenderUserId().equals(RongIMClient.getInstance().getCurrentUserId()) &&