mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 11:50:56 +00:00
Don't allow to share fake wallpaper preview
This commit is contained in:
parent
e8c4f28bec
commit
0660793d21
@ -337,7 +337,11 @@ final class WallpaperGalleryItemNode: GalleryItemNode {
|
|||||||
} else {
|
} else {
|
||||||
subtitleSignal = .single(nil)
|
subtitleSignal = .single(nil)
|
||||||
}
|
}
|
||||||
|
if file.id == 0 {
|
||||||
|
actionSignal = .single(nil)
|
||||||
|
} else {
|
||||||
actionSignal = .single(defaultAction)
|
actionSignal = .single(defaultAction)
|
||||||
|
}
|
||||||
case let .image(representations, _):
|
case let .image(representations, _):
|
||||||
if let largestSize = largestImageRepresentation(representations) {
|
if let largestSize = largestImageRepresentation(representations) {
|
||||||
contentSize = largestSize.dimensions.cgSize
|
contentSize = largestSize.dimensions.cgSize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user