Refresh stale queued link availability in the background
This commit is contained in:
+6
-3
@@ -1045,9 +1045,12 @@ export function normalizeLoadedSession(raw: unknown): SessionState {
|
||||
? undefined
|
||||
: clampNumber(item.archiveRecoveryRedownloads, 0, 0, 1),
|
||||
lastError: asText(item.lastError),
|
||||
fullStatus: asText(item.fullStatus),
|
||||
onlineStatus: VALID_ONLINE_STATUSES.has(onlineStatusRaw) ? onlineStatusRaw as "online" | "offline" | "checking" : undefined,
|
||||
createdAt: clampNumber(item.createdAt, now, 0, Number.MAX_SAFE_INTEGER),
|
||||
fullStatus: asText(item.fullStatus),
|
||||
onlineStatus: VALID_ONLINE_STATUSES.has(onlineStatusRaw) ? onlineStatusRaw as "online" | "offline" | "checking" : undefined,
|
||||
onlineCheckedAt: item.onlineCheckedAt === undefined
|
||||
? undefined
|
||||
: clampNumber(item.onlineCheckedAt, 0, 0, now),
|
||||
createdAt: clampNumber(item.createdAt, now, 0, Number.MAX_SAFE_INTEGER),
|
||||
updatedAt: clampNumber(item.updatedAt, now, 0, Number.MAX_SAFE_INTEGER)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user