fix [调整is_chat开关]
This commit is contained in:
parent
c35832487d
commit
4de32ec4e0
@ -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>() {
|
||||
|
@ -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" />
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user