fix last notification timestamp default value
This commit is contained in:
parent
6a546b03e1
commit
501de4f997
|
@ -951,7 +951,11 @@ public class NotificationService {
|
|||
return false;
|
||||
}
|
||||
|
||||
long lastNotificationTimestamp = ensureLastNotificationTimeByConversation().getLong(conversation.getUuid(), 0L);
|
||||
long lastNotificationTimestamp = ensureLastNotificationTimeByConversation().getLong(conversation.getUuid(), -1L);
|
||||
|
||||
if (lastNotificationTimestamp <= 0L) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (System.currentTimeMillis() - lastNotificationTimestamp) < throttlingPeriod;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue