mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 23:47:01 +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)
|
||||
default:
|
||||
settings.theme = .builtin(.dayClassic)
|
||||
settings.chatWallpaper = .builtin
|
||||
settings.chatWallpaper = .builtin(WallpaperSettings())
|
||||
}
|
||||
let fontSizeMap: [Int32: PresentationFontSize] = [
|
||||
14: .extraSmall,
|
||||
@ -231,7 +231,7 @@ func importLegacyPreferences(accountManager: AccountManager, account: TemporaryA
|
||||
}
|
||||
|
||||
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) {
|
||||
let url = wallpaperInfo.fullscreenUrl()!
|
||||
if let resource = resourceFromLegacyImageUrl(url) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user