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() {
|
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
|
||||||
}, new RongIMClient.ResultCallback<Integer>() {
|
}, new RongIMClient.ResultCallback<Integer>() {
|
||||||
|
@ -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" />
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user