Various fixes

This commit is contained in:
Ilya Laktyushin 2026-03-27 11:13:25 +01:00
parent 8a523bc1cd
commit bc3612587b
5 changed files with 10 additions and 6 deletions

View file

@ -16018,7 +16018,7 @@ Error: %8$@";
"PeerInfo.PanePolls" = "Polls";
"MediaPlayer.SavedMusic.RemoveFromProfile" = "Remove from Profile";
"MediaPlayer.SavedMusic.RemoveFromProfileShort" = "Remove from Profile";
"Gift.Store.ShowStarsListings" = "Show listings for stars only";
"Gift.Store.AllListings" = "All Listings";
@ -16054,7 +16054,7 @@ Error: %8$@";
"MediaPicker.PollSubtitle.PollOption" = "Add media to this option";
"StickerPicker.Title" = "Sticker";
"StickerPicker.PollSubtitle.PollOption" = "Add media to this option";
"StickerPicker.PollSubtitle.PollOption" = "Add sticker to this option";
"Chat.Poll.HiddenResultsTooltip" = "Results will appear after the poll ends";

View file

@ -2338,7 +2338,7 @@ public class ChatMessagePollBubbleContentNode: ChatMessageBubbleContentNode {
item.controllerInteraction.requestAddMessagePollOption(item.message.id, trimmedNewOptionText, entities, optionData, self.currentNewOptionMedia?.media)
return
} else if self.newOptionIsFocused {
return
self.addOptionNode?.resignInput()
}
var hasSelection = false

View file

@ -528,7 +528,7 @@ public final class ContextControllerActionsListActionItemNode: HighlightTracking
component: AnyComponent(
BalancedTextComponent(
text: .plain(balanceTitleAttributedText),
maximumNumberOfLines: 2
maximumNumberOfLines: 3
)
),
environment: {},

View file

@ -187,7 +187,11 @@ extension ChatControllerImpl {
items.append(.separator)
let peerName = "**\(addedByPeer.compactDisplayTitle)**"
var peerName = addedByPeer.compactDisplayTitle
if peerName.count > 20 {
peerName = peerName.prefix(20) + "..."
}
peerName = "**\(peerName)**"
let dateText = humanReadableStringForTimestamp(strings: self.presentationData.strings, dateTimeFormat: self.presentationData.dateTimeFormat, timestamp: date, alwaysShowTime: true, allowYesterday: true, format: HumanReadableStringFormat(
dateFormatString: { value in
if addedByPeer.id == self.context.account.peerId {

View file

@ -1007,7 +1007,7 @@ final class OverlayAudioPlayerControlsNode: ASDisplayNode {
var buttonBackgroundColor = self.presentationData.theme.list.itemCheckColors.fillColor
if savedMusic {
profileAudioButtonContent = AnyComponentWithIdentity(id: "removeFromProfile", component: AnyComponent(
MultilineTextComponent(text: .plain(NSAttributedString(string: self.presentationData.strings.MediaPlayer_SavedMusic_RemoveFromProfile, font: Font.semibold(17.0), textColor: self.presentationData.theme.list.itemPrimaryTextColor)))
MultilineTextComponent(text: .plain(NSAttributedString(string: self.presentationData.strings.MediaPlayer_SavedMusic_RemoveFromProfileShort, font: Font.semibold(17.0), textColor: self.presentationData.theme.list.itemPrimaryTextColor)))
))
buttonBackgroundColor = self.presentationData.theme.list.controlSecondaryColor
} else {