mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Shared media update
This commit is contained in:
@@ -11,3 +11,18 @@ final class EscapeGuard {
|
||||
self.status.isDeallocated = true
|
||||
}
|
||||
}
|
||||
|
||||
public final class EscapeNotification: NSObject {
|
||||
let deallocated: () -> Void
|
||||
|
||||
public init(_ deallocated: @escaping () -> Void) {
|
||||
self.deallocated = deallocated
|
||||
}
|
||||
|
||||
deinit {
|
||||
self.deallocated()
|
||||
}
|
||||
|
||||
public func keep() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user