Merge branch 'master' of gitlab.com:peter-iakovlev/TelegramUI

This commit is contained in:
Ilya Laktyushin
2018-12-18 18:59:38 +04:00
13 changed files with 1865 additions and 1742 deletions

View File

@@ -4086,7 +4086,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))
}
}