Remove timeout defer hack in favor of refactored hook

This commit is contained in:
0x464e 2026-03-25 00:54:28 +02:00
parent da877214d5
commit 025018dd98
No known key found for this signature in database
GPG Key ID: E6D221DF6CBFBFFA

View File

@ -272,19 +272,17 @@ export default function Events() {
...reviewFilter, ...reviewFilter,
...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)), ...getReviewDayBounds(new Date(reviewLink.timestamp * 1000)),
}); });
globalThis.setTimeout(() => { setRecording(
setRecording( {
{ camera: reviewLink.camera,
camera: reviewLink.camera, startTime: reviewLink.timestamp,
startTime: reviewLink.timestamp, // severity not actually applicable here, but the type requires it
// severity not actually applicable here, but the type requires it // this pattern is also used LiveCameraView to enter recording view
// this pattern is also used LiveCameraView to enter recording view severity: "alert",
severity: "alert", timelineType: notificationTab,
timelineType: notificationTab, },
}, true,
true, );
);
}, 0);
return true; return true;
}); });