Add <Unread Count>+ as indicator unreads matching length of conversation fetch

This commit is contained in:
Jack Kingsman
2026-01-15 11:01:08 -08:00
parent d838a5e1b5
commit 94db64fc62
7 changed files with 49 additions and 40 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { useState, useCallback, useEffect, useRef } from 'react';
import { api } from '../api';
import { api, UNREAD_FETCH_LIMIT } from '../api';
import {
getLastMessageTimes,
setLastMessageTime,
@@ -71,7 +71,7 @@ export function useUnreadCounts(
if (conversations.length === 0) return;
try {
const bulkMessages = await api.getMessagesBulk(conversations, 100);
const bulkMessages = await api.getMessagesBulk(conversations, UNREAD_FETCH_LIMIT);
const newUnreadCounts: Record<string, number> = {};
const newMentions: Record<string, boolean> = {};
const newLastMessageTimes: Record<string, number> = {};