Update API

This commit is contained in:
Peter
2018-12-18 16:02:33 +03:00
parent e055885c52
commit a4abbc4068
12 changed files with 1862 additions and 1739 deletions

View File

@@ -4109,7 +4109,9 @@ public final class ChatController: TelegramController, KeyShortcutResponder, Gal
private func presentPollCreation() {
if case let .peer(peerId) = self.chatLocation {
self.present(createPollController(account: self.account, peerId: peerId), in: .window(.root), with: ViewControllerPresentationArguments(presentationAnimation: .modalSheet))
self.present(createPollController(account: self.account, peerId: peerId, completion: { [weak self] message in
self?.sendMessages([message])
}), in: .window(.root), with: ViewControllerPresentationArguments(presentationAnimation: .modalSheet))
}
}