refactor(chat): tighten media cache boundaries

This commit is contained in:
2026-06-30 16:12:02 +08:00
parent ccd2d6bd48
commit 9cff16e2d9
17 changed files with 388 additions and 146 deletions
+1
View File
@@ -67,6 +67,7 @@ export const loadMoreHistoryActor = fromPromise<
throw result.error;
}
const page = localMessagesToUi(result.data.messages);
void chatRepo.prefetchMediaForMessages(result.data.messages);
return {
messages: page,
hasMore: page.length >= PAGE_SIZE,