Stories: Fix polling errors for restricted channels (#4233)
This commit is contained in:
parent
9c8b2e4e40
commit
4987c40e7d
@ -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]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user