mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
Fix theme and wallpaper preview
This commit is contained in:
parent
f11a98e489
commit
1264014b50
@ -698,6 +698,11 @@ public final class ChatInputTextView: ChatInputTextViewImpl, NSLayoutManagerDele
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||||
|
let result = super.hitTest(point, with: event)
|
||||||
|
return result
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class CustomTextSelectionRect: UITextSelectionRect {
|
private final class CustomTextSelectionRect: UITextSelectionRect {
|
||||||
|
|||||||
@ -250,10 +250,12 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
|||||||
var contentMediaAutomaticDownload: InteractiveMediaNodeAutodownloadMode = .none
|
var contentMediaAutomaticDownload: InteractiveMediaNodeAutodownloadMode = .none
|
||||||
|
|
||||||
var mediaAndFlags = mediaAndFlags
|
var mediaAndFlags = mediaAndFlags
|
||||||
if let mediaAndFlagsValue = mediaAndFlags, let _ = mediaAndFlagsValue.0 as? TelegramMediaStory {
|
if let mediaAndFlagsValue = mediaAndFlags {
|
||||||
var flags = mediaAndFlagsValue.1
|
if mediaAndFlagsValue.0 is TelegramMediaStory || mediaAndFlagsValue.0 is WallpaperPreviewMedia {
|
||||||
flags.remove(.preferMediaInline)
|
var flags = mediaAndFlagsValue.1
|
||||||
mediaAndFlags = (mediaAndFlagsValue.0, flags)
|
flags.remove(.preferMediaInline)
|
||||||
|
mediaAndFlags = (mediaAndFlagsValue.0, flags)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var contentMediaAspectFilled = false
|
var contentMediaAspectFilled = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user