Merge pull request #112 from RyanRory/fix-input-issue

Fix Disabled Input Bar on Closed Group Creation
This commit is contained in:
gmbnt 2020-02-19 16:04:24 +11:00 committed by GitHub
commit 7dcd2f2353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,15 +180,15 @@ final class NewClosedGroupVC : UIViewController, UITableViewDataSource, UITableV
DispatchQueue.main.async {
SSKEnvironment.shared.messageSender.send(message, success: {
DispatchQueue.main.async {
SignalApp.shared().presentConversation(for: thread, action: .compose, animated: false)
self?.presentingViewController?.dismiss(animated: true, completion: nil)
SignalApp.shared().presentConversation(for: thread, action: .compose, animated: false)
}
}, failure: { error in
let message = TSErrorMessage(timestamp: NSDate.ows_millisecondTimeStamp(), in: thread, failedMessageType: .groupCreationFailed)
message.save()
DispatchQueue.main.async {
SignalApp.shared().presentConversation(for: thread, action: .compose, animated: false)
self?.presentingViewController?.dismiss(animated: true, completion: nil)
SignalApp.shared().presentConversation(for: thread, action: .compose, animated: false)
}
})
}