fix: ensure sweep stamp is only applied manually when stale items are processed

This commit is contained in:
djg 2026-09-23 06:45:55 +00:00
parent 0f9bf0c34e
commit 7db88148b7

View file

@ -933,8 +933,9 @@
// Auto-trigger on page load if stale // Auto-trigger on page load if stale
if (sweepNeeded() && inboxItems.length > 0) { if (sweepNeeded() && inboxItems.length > 0) {
openSweep(inboxItems.slice()); openSweep(inboxItems.slice());
} else {
stampVisit();
} }
stampVisit();
// Manual "sweep stale" button in inbox // Manual "sweep stale" button in inbox
var $inboxSweep = $('#inbox-sweep'); var $inboxSweep = $('#inbox-sweep');