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;
} else {
const chat = peer as ApiChat;
return isChatChannel(chat);
return isChatChannel(chat) && !chat.isRestricted;
}
}).map((user) => user.id);
}, [peers]);