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

View File

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

View File

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