Various fixes

This commit is contained in:
Ilya Laktyushin 2026-04-07 06:36:13 +02:00
parent 86e521c3cb
commit ae6d05c49d
4 changed files with 10 additions and 1 deletions

View file

@ -16174,3 +16174,5 @@ Error: %8$@";
"CreatePoll.OptionsNeeded" = "Add at least two options";
"CreatePoll.QuizCorrectOptionNeeded" = "Select a correct option";
"CreatePoll.QuizCorrectOptionNeededMultiple" = "Select at least one correct option";
"Stars.Intro.Transaction.Commission.Title" = "%@ commission";

View file

@ -160,6 +160,11 @@ public final class ChatMessageWebpageBubbleContentNode: ChatMessageBubbleContent
return ChatMessageBubbleContentTapAction(content: .none)
}
let incoming = item.message.effectivelyIncoming(item.context.account.peerId)
if incoming && item.associatedData.isSuspiciousPeer {
return ChatMessageBubbleContentTapAction(content: .none)
}
if let file = content.file {
if !file.isVideo, !file.isVideoSticker, !file.isAnimated, !file.isAnimatedSticker, !file.isSticker, !file.isMusic {
return ChatMessageBubbleContentTapAction(content: .openMessage)

View file

@ -346,7 +346,7 @@ final class ComposePollScreenComponent: Component {
for (id, itemView) in self.pollOptionsSectionContainer.itemViews {
if let view = itemView.contents.view as? ListComposePollOptionComponent.View, !view.isRevealed && !view.currentText.isEmpty {
let viewFrame = view.convert(view.bounds, to: self.pollOptionsSectionContainer)
let iconFrame = CGRect(origin: CGPoint(x: viewFrame.minX, y: viewFrame.minY), size: CGSize(width: viewFrame.height, height: viewFrame.height))
let iconFrame = CGRect(origin: CGPoint(x: viewFrame.minX, y: viewFrame.minY), size: CGSize(width: 50.0, height: viewFrame.height))
if iconFrame.contains(localPoint) {
return (id, itemView.contents)
}

View file

@ -378,6 +378,8 @@ final class StarsTransactionsListPanelComponent: Component {
itemSubtitle = environment.strings.Stars_Intro_Transaction_Gift_Title
} else if let _ = item.subscriptionPeriod {
itemSubtitle = environment.strings.Stars_Intro_Transaction_SubscriptionFee_Title
} else if let permille = item.starrefCommissionPermille {
itemSubtitle = environment.strings.Stars_Intro_Transaction_Commission_Title("\(formatPermille(permille))%").string
} else {
itemSubtitle = nil
}