mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Bot previews
This commit is contained in:
@@ -47,6 +47,13 @@ open class PortalSourceView: UIView {
|
||||
}
|
||||
}
|
||||
|
||||
public func removePortal(view: PortalView) {
|
||||
if let index = self.portalReferences.firstIndex(where: { $0.portalView === view }) {
|
||||
self.portalReferences.remove(at: index)
|
||||
}
|
||||
view.disablePortal()
|
||||
}
|
||||
|
||||
func setGlobalPortal(view: GlobalPortalView?) {
|
||||
if let globalPortalView = self.globalPortalView {
|
||||
self.globalPortalView = nil
|
||||
|
||||
Reference in New Issue
Block a user