mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various fixes
This commit is contained in:
parent
86e521c3cb
commit
ae6d05c49d
4 changed files with 10 additions and 1 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue