This commit is contained in:
Виталий Лавшонок
2025-11-23 10:35:26 +03:00
parent 57a680fba8
commit dae4584840

View File

@@ -91,7 +91,7 @@ export const Chat: FC<GroupChatProps> = ({ groupId }) => {
useEffect(() => {
lastMessageIdRef.current = lastMessageId;
if (firstMessagesFetch) {
if (lastMessageId && firstMessagesFetch) {
setFirctMessagesFetch(false);
dispatch(
fetchGroupMessages({