docs(desktop): correct stale post-subscribe refetch comment

The enforceMessageWindowBounds doc referenced shouldRefreshChannelWindowAfterSubscribe, a seam #5662 removed when it made the post-subscribe refetch unconditional. Describe the current behavior instead.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
Duncan
2026-08-13 18:15:24 -04:00
parent 13b78568f0
commit 9cdbd63661

View File

@@ -98,7 +98,7 @@ function foldUnits(queries: ClassifiedQuery[]): Map<string, MessageWindowUnit> {
* queries. Channels and threads are bounded independently.
*
* Removal (not invalidation) is deliberate: a removed key reads back as absent,
* so `shouldRefreshChannelWindowAfterSubscribe` re-fetches fresh on revisit.
* so a revisit re-fetches fresh via the unconditional post-subscribe refetch.
* Deferred background writers (reaction/aux hydration, ancestor loads, mutation
* success handlers) fire after their own promise settles with no pin, so each
* commits through `updateRetainedMessageUnit`; bumping the evicted unit's