1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #340 - Announcements popup shows every time

This commit is contained in:
Jon Ziebell 2021-07-24 09:26:38 -04:00
parent c5cb3f1bc1
commit d1aa64dba6

View File

@ -238,10 +238,13 @@ beestat.layer.load.prototype.decorate_ = function(parent) {
beestat.setting('first_run', false);
(new beestat.component.modal.newsletter()).render();
} else if (
last_read_announcement_id === undefined ||
beestat.cache.announcement.length > 0 &&
(
most_recent_important_announcement_id !== undefined &&
last_read_announcement_id < most_recent_important_announcement_id
last_read_announcement_id === undefined ||
(
most_recent_important_announcement_id !== undefined &&
last_read_announcement_id < most_recent_important_announcement_id
)
)
) {
(new beestat.component.modal.announcements()).render();