Poll creation

This commit is contained in:
Isaac
2024-04-12 21:55:06 +04:00
parent c7035b2621
commit 844f2c71c3
10 changed files with 1775 additions and 263 deletions

View File

@@ -554,9 +554,10 @@ extension ChatControllerImpl {
}
}))
case .poll:
let controller = strongSelf.configurePollCreation()
completion(controller, controller?.mediaPickerContext)
strongSelf.controllerNavigationDisposable.set(nil)
if let controller = strongSelf.configurePollCreation() as? AttachmentContainable {
completion(controller, controller.mediaPickerContext)
strongSelf.controllerNavigationDisposable.set(nil)
}
case .gift:
if let peer = strongSelf.presentationInterfaceState.renderedPeer?.peer {
let premiumGiftOptions = strongSelf.presentationInterfaceState.premiumGiftOptions