mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add bio editing and photo setup in voice chats
This commit is contained in:
@@ -384,6 +384,8 @@ public class GalleryController: ViewController, StandalonePresentableController
|
||||
|
||||
private var screenCaptureEventsDisposable: Disposable?
|
||||
|
||||
public var centralItemUpdated: ((MessageId) -> Void)?
|
||||
|
||||
public init(context: AccountContext, source: GalleryControllerItemSource, invertItemOrder: Bool = false, streamSingleVideo: Bool = false, fromPlayingVideo: Bool = false, landscape: Bool = false, timecode: Double? = nil, synchronousLoad: Bool = false, replaceRootController: @escaping (ViewController, Promise<Bool>?) -> Void, baseNavigationController: NavigationController?, actionInteraction: GalleryControllerActionInteraction? = nil) {
|
||||
self.context = context
|
||||
self.source = source
|
||||
@@ -1192,6 +1194,9 @@ public class GalleryController: ViewController, StandalonePresentableController
|
||||
}
|
||||
if strongSelf.didSetReady {
|
||||
strongSelf._hiddenMedia.set(.single(hiddenItem))
|
||||
if let hiddenItem = hiddenItem {
|
||||
strongSelf.centralItemUpdated?(hiddenItem.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user