Folder improvements

This commit is contained in:
Ali
2023-04-06 12:22:30 +04:00
parent 72e5472715
commit 4da85d3328
5 changed files with 104 additions and 28 deletions

View File

@@ -389,6 +389,15 @@ public final class Transaction {
return self.postbox?.chatListTable.getPeerChatListIndex(peerId: peerId)
}
public func getChatListPeers(groupId: PeerGroupId, filterPredicate: ChatListFilterPredicate?, additionalFilter: ((Peer) -> Bool)?) -> [Peer] {
assert(!self.disposed)
if let postbox = self.postbox {
return postbox.chatListTable.getChatListPeers(postbox: postbox, currentTransaction: self, groupId: groupId, filterPredicate: filterPredicate, additionalFilter: additionalFilter)
} else {
return []
}
}
public func getUnreadChatListPeerIds(groupId: PeerGroupId, filterPredicate: ChatListFilterPredicate?, additionalFilter: ((Peer) -> Bool)?, stopOnFirstMatch: Bool) -> [PeerId] {
assert(!self.disposed)
if let postbox = self.postbox {