mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Special handling for secret chats
This commit is contained in:
parent
1ddb57c98c
commit
5da230ace4
1 changed files with 3 additions and 2 deletions
|
|
@ -268,10 +268,11 @@ public struct ChatListFilterPredicate {
|
|||
}
|
||||
|
||||
func includes(peer: Peer, groupId: PeerGroupId, notificationSettings: PeerNotificationSettings?, isUnread: Bool, isContact: Bool) -> Bool {
|
||||
if self.excludePeerIds.contains(peer.id) {
|
||||
let includePeerId = peer.associatedPeerId ?? peer.id
|
||||
if self.excludePeerIds.contains(includePeerId) {
|
||||
return false
|
||||
}
|
||||
if self.includePeerIds.contains(peer.id) {
|
||||
if self.includePeerIds.contains(includePeerId) {
|
||||
return true
|
||||
}
|
||||
if groupId != .root {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue