mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix build
This commit is contained in:
@@ -84,7 +84,7 @@ private func contentNodeMessagesAndClassesForItem(_ item: ChatMessageItem) -> ([
|
|||||||
let isVideo = file.isVideo || (file.isAnimated && file.dimensions != nil)
|
let isVideo = file.isVideo || (file.isAnimated && file.dimensions != nil)
|
||||||
if isVideo {
|
if isVideo {
|
||||||
if file.isInstantVideo {
|
if file.isInstantVideo {
|
||||||
result.append((message, ChatMessageInstantVideoBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .freeform, neighborSpacing: .default)))
|
// result.append((message, ChatMessageInstantVideoBubbleContentNode.self, itemAttributes, BubbleItemAttributes(isAttachment: false, neighborType: .freeform, neighborSpacing: .default)))
|
||||||
} else {
|
} else {
|
||||||
if let forwardInfo = message.forwardInfo, forwardInfo.flags.contains(.isImported), message.text.isEmpty {
|
if let forwardInfo = message.forwardInfo, forwardInfo.flags.contains(.isImported), message.text.isEmpty {
|
||||||
messageWithCaptionToAdd = (message, itemAttributes)
|
messageWithCaptionToAdd = (message, itemAttributes)
|
||||||
|
|||||||
@@ -1150,7 +1150,7 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
|
|||||||
let audioTranscriptionButtonSize = audioTranscriptionButton.update(
|
let audioTranscriptionButtonSize = audioTranscriptionButton.update(
|
||||||
transition: animation.isAnimated ? .easeInOut(duration: 0.3) : .immediate,
|
transition: animation.isAnimated ? .easeInOut(duration: 0.3) : .immediate,
|
||||||
component: AnyComponent(AudioTranscriptionButtonComponent(
|
component: AnyComponent(AudioTranscriptionButtonComponent(
|
||||||
theme: arguments.incoming ? arguments.presentationData.theme.theme.chat.message.incoming : arguments.presentationData.theme.theme.chat.message.outgoing,
|
theme: .bubble(arguments.incoming ? arguments.presentationData.theme.theme.chat.message.incoming : arguments.presentationData.theme.theme.chat.message.outgoing),
|
||||||
transcriptionState: effectiveAudioTranscriptionState,
|
transcriptionState: effectiveAudioTranscriptionState,
|
||||||
pressed: {
|
pressed: {
|
||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
|
|||||||
Reference in New Issue
Block a user