fix [跨设备已读消息依旧推送问题]

This commit is contained in:
zlzw 2024-03-26 14:23:50 +08:00
parent 218b223320
commit 631be1bd89

View File

@ -127,7 +127,7 @@ public class AppContext extends CommonAppContext {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
if(activity instanceof VideoPlayActivity){
if (activity instanceof VideoPlayActivity) {
MessageSayHiNotifyManager.getInstance().stop();
return;
}
@ -281,6 +281,9 @@ public class AppContext extends CommonAppContext {
if (AppManager.getInstance().getLastActivity() instanceof CompleteUserInfoActivity) {
return false;
}
if (message.getReceivedStatus().isRead()) {
return false;
}
MessageChatNotifyManager.getInstance().push(AppManager.getInstance().getLastActivity()
, message.getTargetId(),
content.getContent()