- struct init visibility

This commit is contained in:
overtake 2021-01-19 11:42:12 +03:00
parent c7292fa83f
commit 3eec8d9ab8

View File

@ -14,6 +14,14 @@ public struct TelegramPeerPhoto {
public let index: Int
public let totalCount: Int
public let messageId: MessageId?
public init(image: TelegramMediaImage, reference: TelegramMediaImageReference?, date: Int32, index: Int, totalCount: Int, messageId: MessageId?) {
self.image = image
self.reference = reference
self.date = date
self.index = index
self.totalCount = totalCount
self.messageId = messageId
}
}
public func requestPeerPhotos(postbox: Postbox, network: Network, peerId: PeerId) -> Signal<[TelegramPeerPhoto], NoError> {