mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Special handling for secret chats
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user