mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge commit 'd4ac8511f47e632331baa154b6b10c0f0bcaff53'
This commit is contained in:
commit
a2410560f5
@ -192,7 +192,7 @@ func importLegacyPreferences(accountManager: AccountManager, account: TemporaryA
|
|||||||
settings.chatWallpaper = .color(0x18222D)
|
settings.chatWallpaper = .color(0x18222D)
|
||||||
default:
|
default:
|
||||||
settings.theme = .builtin(.dayClassic)
|
settings.theme = .builtin(.dayClassic)
|
||||||
settings.chatWallpaper = .builtin
|
settings.chatWallpaper = .builtin(WallpaperSettings())
|
||||||
}
|
}
|
||||||
let fontSizeMap: [Int32: PresentationFontSize] = [
|
let fontSizeMap: [Int32: PresentationFontSize] = [
|
||||||
14: .extraSmall,
|
14: .extraSmall,
|
||||||
@ -231,7 +231,7 @@ func importLegacyPreferences(accountManager: AccountManager, account: TemporaryA
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let wallpaperInfo = wallpaperInfo as? TGBuiltinWallpaperInfo, wallpaperInfo.isDefault() {
|
if let wallpaperInfo = wallpaperInfo as? TGBuiltinWallpaperInfo, wallpaperInfo.isDefault() {
|
||||||
settings.chatWallpaper = .builtin
|
settings.chatWallpaper = .builtin(WallpaperSettings())
|
||||||
} else if let wallpaperInfo = wallpaperInfo as? TGRemoteWallpaperInfo, let data = try? Data(contentsOf: URL(fileURLWithPath: documentsPath + "/wallpaper-data/_currentWallpaper.jpg")), let image = UIImage(data: data) {
|
} else if let wallpaperInfo = wallpaperInfo as? TGRemoteWallpaperInfo, let data = try? Data(contentsOf: URL(fileURLWithPath: documentsPath + "/wallpaper-data/_currentWallpaper.jpg")), let image = UIImage(data: data) {
|
||||||
let url = wallpaperInfo.fullscreenUrl()!
|
let url = wallpaperInfo.fullscreenUrl()!
|
||||||
if let resource = resourceFromLegacyImageUrl(url) {
|
if let resource = resourceFromLegacyImageUrl(url) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user