mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
28 lines
677 B
Swift
28 lines
677 B
Swift
import Foundation
|
|
import UIKit
|
|
import SwiftSignalKit
|
|
import Postbox
|
|
import TelegramCore
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import AccountContext
|
|
|
|
extension PeerInfoScreenImpl {
|
|
func presentAccountFrozenInfoIfNeeded(delay: Bool = false) -> Bool {
|
|
if self.context.isFrozen {
|
|
let present = {
|
|
self.push(self.context.sharedContext.makeAccountFreezeInfoScreen(context: self.context))
|
|
}
|
|
if delay {
|
|
Queue.mainQueue().after(0.3) {
|
|
present()
|
|
}
|
|
} else {
|
|
present()
|
|
}
|
|
return true
|
|
}
|
|
return false
|
|
}
|
|
}
|