Files
ichmagmaus111andClaude Opus 5.5 0622057a4f Ghostgram: open-source release
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:57:09 +01:00

21 lines
661 B
Swift

import Foundation
import SwiftSignalKit
import Postbox
public extension TelegramEngine {
final class ItemCollections {
private let account: Account
init(account: Account) {
self.account = account
}
public func allItems(namespace: ItemCollectionId.Namespace) -> Signal<[EngineRawItemCollectionItem], NoError> {
return self.account.postbox.itemCollectionsView(orderedItemListCollectionIds: [], namespaces: [namespace], aroundIndex: nil, count: 10000000)
|> map { view -> [EngineRawItemCollectionItem] in
return view.entries.map { $0.item }
}
}
}
}