Some misc frontend cleanup grossness

This commit is contained in:
Jack Kingsman
2026-03-11 20:49:37 -07:00
parent 38c7277c9d
commit bc7506b0d9
4 changed files with 95 additions and 10 deletions
@@ -232,14 +232,12 @@ export function useConversationMessages(
if (latestReconcileRequestIdRef.current !== requestId) return;
const dataWithPendingAck = data.map((msg) => applyPendingAck(msg));
setHasOlderMessages(dataWithPendingAck.length >= MESSAGE_PAGE_SIZE);
const merged = messageCache.reconcile(messagesRef.current, dataWithPendingAck);
if (!merged) return;
setMessages(merged);
syncSeenContent(merged);
if (dataWithPendingAck.length >= MESSAGE_PAGE_SIZE) {
setHasOlderMessages(true);
}
})
.catch((err) => {
if (isAbortError(err)) return;