mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 21:16:35 +00:00
Remove unnecessary filter category rule
This commit is contained in:
parent
727bf6223c
commit
8e95642d8f
@ -742,9 +742,9 @@ enum ChatListFilterType {
|
||||
case nonContacts
|
||||
}
|
||||
|
||||
func chatListFilterType(_ filter: ChatListFilter) -> ChatListFilterType {
|
||||
func chatListFilterType(postbox: Postbox, filter: ChatListFilter) -> ChatListFilterType {
|
||||
let filterType: ChatListFilterType
|
||||
if filter.data.includePeers.peers.isEmpty {
|
||||
|
||||
if filter.data.categories == .all {
|
||||
if filter.data.excludeRead {
|
||||
filterType = .unread
|
||||
@ -768,9 +768,7 @@ func chatListFilterType(_ filter: ChatListFilter) -> ChatListFilterType {
|
||||
filterType = .generic
|
||||
}
|
||||
}
|
||||
} else {
|
||||
filterType = .generic
|
||||
}
|
||||
|
||||
return filterType
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user