This commit is contained in:
18401019693 2022-07-25 16:04:16 +08:00
parent b264001a44
commit 97660b2b04
2 changed files with 13 additions and 16 deletions

View File

@ -2,14 +2,23 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<TextView
android:id="@+id/top_noback"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="18dp"
android:text="@string/message"
android:textColor="@color/black3"
android:textSize="24sp"
android:textStyle="bold" />
<FrameLayout
android:paddingTop="10dp"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="400dp"
android:background="@color/white"/>
android:background="@color/white"
android:paddingTop="10dp" />
</LinearLayout>

View File

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