fix [调整is_chat开关]

This commit is contained in:
zlzw 2024-04-02 15:09:12 +08:00
parent c35832487d
commit 4de32ec4e0
3 changed files with 9 additions and 3 deletions

View File

@ -77,18 +77,23 @@ public class MessageIMManager {
UnReadMessageManager.getInstance().addObserver(conversationTypes, new UnReadMessageManager.IUnReadMessageObserver() {
@Override
public void onCountChanged(int integer) {
/*
if (!IMLoginManager.get(mContext).hintChat()) {
imNumber = integer;
//发送通知
unreadMessagesHandler.post(essagesRunnable);
}
*/
imNumber = integer;
//发送通知
unreadMessagesHandler.post(essagesRunnable);
}
});
}
public void resetImUnReadMessageCount(Context mContext){
public void resetImUnReadMessageCount(Context mContext) {
RongIMClient.getInstance().getUnreadCount(new Conversation.ConversationType[]{
Conversation.ConversationType.PRIVATE
}, new RongIMClient.ResultCallback<Integer>() {

View File

@ -36,6 +36,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:scaleType="centerCrop"
app:layout_constraintTop_toTopOf="parent"
app:ri_ratio="1"
app:riv_oval="true" />

View File

@ -231,7 +231,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
@Override
public void run() {
netHandler.post(imUserInfoRunnable);
if (IMLoginManager.get(mContext).hintChat()) {
if (IMLoginManager.get(mContext).hintChat()&&false) {
container.setVisibility(View.GONE);
ltNodataMsg.setVisibility(View.VISIBLE);
} else {