fix bug when going to hubs

This commit is contained in:
2024-09-27 17:16:40 +03:00
parent 1144e4280a
commit 0148083efd
3 changed files with 8 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
setMessages(totalMessages);
setTimeout(() => {
const hasUnreadMessages = totalMessages.some((msg) => msg.unread);
const hasUnreadMessages = totalMessages.some((msg) => msg.unread && !msg?.chatReference);
if (virtuosoRef.current) {