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
|
||||
}
|
||||
|
||||
override public func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
let result = super.hitTest(point, with: event)
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
private final class CustomTextSelectionRect: UITextSelectionRect {
|
||||
|
||||
@ -250,10 +250,12 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
var contentMediaAutomaticDownload: InteractiveMediaNodeAutodownloadMode = .none
|
||||
|
||||
var mediaAndFlags = mediaAndFlags
|
||||
if let mediaAndFlagsValue = mediaAndFlags, let _ = mediaAndFlagsValue.0 as? TelegramMediaStory {
|
||||
var flags = mediaAndFlagsValue.1
|
||||
flags.remove(.preferMediaInline)
|
||||
mediaAndFlags = (mediaAndFlagsValue.0, flags)
|
||||
if let mediaAndFlagsValue = mediaAndFlags {
|
||||
if mediaAndFlagsValue.0 is TelegramMediaStory || mediaAndFlagsValue.0 is WallpaperPreviewMedia {
|
||||
var flags = mediaAndFlagsValue.1
|
||||
flags.remove(.preferMediaInline)
|
||||
mediaAndFlags = (mediaAndFlagsValue.0, flags)
|
||||
}
|
||||
}
|
||||
|
||||
var contentMediaAspectFilled = false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user