Skip to content

Commit 8c3bfe9

Browse files
author
Isaac
committed
Fix
1 parent 4f2bfb5 commit 8c3bfe9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

submodules/TelegramUI/Components/Chat/ChatChannelSubscriberInputPanelNode/Sources/ChatChannelSubscriberInputPanelNode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode {
335335

336336
Queue.mainQueue().after(0.4, {
337337
let absoluteFrame = self.giftButton.convert(self.giftButton.bounds, to: parentController.view)
338-
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY + 11.0), size: CGSize())
338+
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY), size: CGSize())
339339

340340
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
341341
let text: String = presentationData.strings.Chat_SendGiftTooltip
@@ -362,7 +362,7 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode {
362362

363363
Queue.mainQueue().after(0.4, {
364364
let absoluteFrame = self.suggestedPostButton.convert(self.suggestedPostButton.bounds, to: parentController.view)
365-
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY + 11.0), size: CGSize())
365+
let location = CGRect(origin: CGPoint(x: absoluteFrame.midX, y: absoluteFrame.minY), size: CGSize())
366366

367367
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
368368
let _ = presentationData

submodules/TelegramUI/Components/Chat/ChatTextInputPanelNode/Sources/ChatTextInputPanelNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2758,7 +2758,7 @@ public class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDeleg
27582758
viewOnceIsVisible = isLocked
27592759
}
27602760
}
2761-
if interfaceState.interfaceState.mediaDraftState != nil {
2761+
if let mediaDraftState = interfaceState.interfaceState.mediaDraftState, case .audio = mediaDraftState.contentType {
27622762
recordMoreIsVisible = true
27632763
}
27642764

0 commit comments

Comments
 (0)