Chat List: Do not show migrated chats
This commit is contained in:
parent
84ea8e480e
commit
0d43e44c6c
@ -414,7 +414,7 @@ function buildChatSummary(
|
|||||||
user?: ApiUser,
|
user?: ApiUser,
|
||||||
): ChatSummary {
|
): ChatSummary {
|
||||||
const {
|
const {
|
||||||
id, type, lastMessage, isRestricted, isNotJoined, folderId,
|
id, type, lastMessage, isRestricted, isNotJoined, migratedTo, folderId,
|
||||||
unreadCount, unreadMentionsCount, hasUnreadMark,
|
unreadCount, unreadMentionsCount, hasUnreadMark,
|
||||||
joinDate, draftDate,
|
joinDate, draftDate,
|
||||||
} = chat;
|
} = chat;
|
||||||
@ -424,7 +424,7 @@ function buildChatSummary(
|
|||||||
return {
|
return {
|
||||||
id,
|
id,
|
||||||
type,
|
type,
|
||||||
isListed: Boolean(lastMessage && !isRestricted && !isNotJoined),
|
isListed: Boolean(lastMessage && !isRestricted && !isNotJoined && !migratedTo),
|
||||||
isArchived: folderId === ARCHIVED_FOLDER_ID,
|
isArchived: folderId === ARCHIVED_FOLDER_ID,
|
||||||
isMuted: selectIsChatMuted(chat, notifySettings, notifyExceptions),
|
isMuted: selectIsChatMuted(chat, notifySettings, notifyExceptions),
|
||||||
isUnread: Boolean(unreadCount || unreadMentionsCount || hasUnreadMark),
|
isUnread: Boolean(unreadCount || unreadMentionsCount || hasUnreadMark),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user