fix last notification timestamp default value

This commit is contained in:
kosyak 2024-05-21 16:50:59 +02:00
parent 6a546b03e1
commit 501de4f997

View file

@ -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;
}