mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix xml pattern preview
This commit is contained in:
@@ -106,7 +106,7 @@ private func updatedFileWallpaper(wallpaper: TelegramWallpaper, firstColor: UICo
|
||||
}
|
||||
|
||||
private func updatedFileWallpaper(id: Int64? = nil, accessHash: Int64? = nil, slug: String, file: TelegramMediaFile, firstColor: UIColor?, secondColor: UIColor?, intensity: Int32?, rotation: Int32?) -> TelegramWallpaper {
|
||||
var isPattern = ["image/png", "image/svg+xml"].contains(file.mimeType)
|
||||
var isPattern = ["image/png", "image/svg+xml", "application/x-tgwallpattern"].contains(file.mimeType)
|
||||
if let fileName = file.fileName, fileName.hasSuffix(".svgbg") {
|
||||
isPattern = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user