feat: reliable channels search up to 30 days to find message

Queries stop once a valid sync or content message is found in the channel.
This commit is contained in:
fryorcraken 2025-09-30 16:13:45 +10:00
parent 99446e23f7
commit 1ea8a5b75f
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -17,7 +17,7 @@ import {
const log = new Logger("sdk:query-on-connect");
export const DEFAULT_FORCE_QUERY_THRESHOLD_MS = 5 * 60 * 1000; // 5 minutes
export const MAX_TIME_RANGE_QUERY_MS = 24 * 60 * 60 * 1000; // 24 hours
export const MAX_TIME_RANGE_QUERY_MS = 30 * 24 * 60 * 60 * 1000; // 30 days (queries are split)
export interface QueryOnConnectOptions {
/**