mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Initialize MediaAutoDownloadNetworkType with NetworkType
This commit is contained in:
parent
2e81229d8a
commit
0bdce8a93b
@ -10,6 +10,17 @@ public enum MediaAutoDownloadNetworkType {
|
|||||||
case cellular
|
case cellular
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public extension MediaAutoDownloadNetworkType {
|
||||||
|
init(_ networkType: NetworkType) {
|
||||||
|
switch networkType {
|
||||||
|
case .none, .cellular:
|
||||||
|
self = .cellular
|
||||||
|
case .wifi:
|
||||||
|
self = .wifi
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public enum MediaAutoDownloadPreset: Int32 {
|
public enum MediaAutoDownloadPreset: Int32 {
|
||||||
case low
|
case low
|
||||||
case medium
|
case medium
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user