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()) &&