Stories: Fix polling errors for restricted channels (#4233)

This commit is contained in:
Alexander Zinchuk 2024-02-06 16:49:06 +01:00
parent 9c8b2e4e40
commit 4987c40e7d

View File

@ -53,7 +53,7 @@ export default function usePeerStoriesPolling(ids?: string[]) {
return !user.isContact && !user.isSelf && !isUserBot(user) && !peer.isSupport && isStatusAvailable; return !user.isContact && !user.isSelf && !isUserBot(user) && !peer.isSupport && isStatusAvailable;
} else { } else {
const chat = peer as ApiChat; const chat = peer as ApiChat;
return isChatChannel(chat); return isChatChannel(chat) && !chat.isRestricted;
} }
}).map((user) => user.id); }).map((user) => user.id);
}, [peers]); }, [peers]);