mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
Chat List: Do not show migrated chats
This commit is contained in:
parent
84ea8e480e
commit
0d43e44c6c
@ -414,7 +414,7 @@ function buildChatSummary(
|
||||
user?: ApiUser,
|
||||
): ChatSummary {
|
||||
const {
|
||||
id, type, lastMessage, isRestricted, isNotJoined, folderId,
|
||||
id, type, lastMessage, isRestricted, isNotJoined, migratedTo, folderId,
|
||||
unreadCount, unreadMentionsCount, hasUnreadMark,
|
||||
joinDate, draftDate,
|
||||
} = chat;
|
||||
@ -424,7 +424,7 @@ function buildChatSummary(
|
||||
return {
|
||||
id,
|
||||
type,
|
||||
isListed: Boolean(lastMessage && !isRestricted && !isNotJoined),
|
||||
isListed: Boolean(lastMessage && !isRestricted && !isNotJoined && !migratedTo),
|
||||
isArchived: folderId === ARCHIVED_FOLDER_ID,
|
||||
isMuted: selectIsChatMuted(chat, notifySettings, notifyExceptions),
|
||||
isUnread: Boolean(unreadCount || unreadMentionsCount || hasUnreadMark),
|
||||
|
Loading…
Reference in New Issue
Block a user