Fix calling isListed on undefined chat
This commit is contained in:
parent
652be2823c
commit
baa92eb1b3
@ -282,8 +282,9 @@ export function prepareFolderListIds(
|
|||||||
const pinnedChatIds = folder.excludedChatIds ? new Set(folder.pinnedChatIds) : undefined;
|
const pinnedChatIds = folder.excludedChatIds ? new Set(folder.pinnedChatIds) : undefined;
|
||||||
const listIds = ([] as string[]).concat(allListIds.active || [], allListIds.archived || [])
|
const listIds = ([] as string[]).concat(allListIds.active || [], allListIds.archived || [])
|
||||||
.filter((id) => {
|
.filter((id) => {
|
||||||
return filterChatFolder(
|
const chat = chatsById[id];
|
||||||
chatsById[id],
|
return chat && filterChatFolder(
|
||||||
|
chat,
|
||||||
folder,
|
folder,
|
||||||
usersById,
|
usersById,
|
||||||
notifySettings,
|
notifySettings,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user