This commit is contained in:
Isaac
2025-09-30 02:09:57 +08:00
parent 4f2bfb5d0d
commit 8c3bfe9890
2 changed files with 3 additions and 3 deletions

View File

@@ -335,7 +335,7 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode {
Queue.mainQueue().after(0.4, {
let absoluteFrame = self.giftButton.convert(self.giftButton.bounds, to: parentController.view)
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY + 11.0), size: CGSize())
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY), size: CGSize())
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
let text: String = presentationData.strings.Chat_SendGiftTooltip
@@ -362,7 +362,7 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode {
Queue.mainQueue().after(0.4, {
let absoluteFrame = self.suggestedPostButton.convert(self.suggestedPostButton.bounds, to: parentController.view)
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY + 11.0), size: CGSize())
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY), size: CGSize())
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
let _ = presentationData

View File

@@ -2758,7 +2758,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
viewOnceIsVisible = isLocked
}
}
if interfaceState.interfaceState.mediaDraftState != nil {
if let mediaDraftState = interfaceState.interfaceState.mediaDraftState, case .audio = mediaDraftState.contentType {
recordMoreIsVisible = true
}