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