添加推送过期配置

This commit is contained in:
heavyrian2012
2023-09-13 11:16:54 +08:00
parent a183d30f89
commit 4e6188ee32
6 changed files with 24 additions and 1 deletions
@@ -235,7 +235,7 @@ public class MessagesPublisher {
for (Session targetSession : sessions) {
//超过7天不活跃的用户忽略
if(System.currentTimeMillis() - targetSession.getLastActiveTime() > 7 * 24 * 60 * 60 * 1000) {
if(System.currentTimeMillis() - targetSession.getLastActiveTime() > m_messagesStore.getPushExpiredTimes()) {
continue;
}