Add bio editing and photo setup in voice chats

This commit is contained in:
Ilya Laktyushin
2021-03-27 10:23:35 +05:00
parent 1fd84c653b
commit 2c404a8b5c
27 changed files with 1743 additions and 1573 deletions

View File

@@ -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)
}
}
}
}