mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Web app improvements
This commit is contained in:
@@ -829,8 +829,12 @@ public class AttachmentController: ViewController {
|
||||
super.dismiss(animated: false, completion: {})
|
||||
}
|
||||
|
||||
public var ensureUnfocused = true
|
||||
|
||||
public override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
|
||||
self.view.endEditing(true)
|
||||
if self.ensureUnfocused {
|
||||
self.view.endEditing(true)
|
||||
}
|
||||
if flag {
|
||||
if !self.didDismiss {
|
||||
self.didDismiss = true
|
||||
|
||||
Reference in New Issue
Block a user