mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Add killswitch
This commit is contained in:
parent
a6dffb4e3e
commit
bf21a499b7
@ -2596,6 +2596,18 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
|
||||
return
|
||||
}
|
||||
|
||||
if !(item.content is NativeVideoContent) {
|
||||
return
|
||||
}
|
||||
|
||||
var useNative = true
|
||||
if let data = self.context.currentAppConfiguration.with({ $0 }).data, let _ = data["ios_killswitch_disable_native_pip"] {
|
||||
useNative = false
|
||||
}
|
||||
if !useNative {
|
||||
return
|
||||
}
|
||||
|
||||
var hiddenMedia: (MessageId, Media)? = nil
|
||||
switch item.contentInfo {
|
||||
case let .message(message, _):
|
||||
|
Loading…
x
Reference in New Issue
Block a user