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
8a523bc1cd
commit
bc3612587b
5 changed files with 10 additions and 6 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -528,7 +528,7 @@ public final class ContextControllerActionsListActionItemNode: HighlightTracking
|
|||
component: AnyComponent(
|
||||
BalancedTextComponent(
|
||||
text: .plain(balanceTitleAttributedText),
|
||||
maximumNumberOfLines: 2
|
||||
maximumNumberOfLines: 3
|
||||
)
|
||||
),
|
||||
environment: {},
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue