From afffa4f530278f9d68f11ba29b48b5d8ed48a07b Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 27 Oct 2024 19:33:45 +0400 Subject: [PATCH] Various fixes --- submodules/StatisticsUI/Sources/MonetizationBalanceItem.swift | 2 +- .../Sources/StoryItemSetViewListComponent.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/submodules/StatisticsUI/Sources/MonetizationBalanceItem.swift b/submodules/StatisticsUI/Sources/MonetizationBalanceItem.swift index 02138ea79a..e92c53bd40 100644 --- a/submodules/StatisticsUI/Sources/MonetizationBalanceItem.swift +++ b/submodules/StatisticsUI/Sources/MonetizationBalanceItem.swift @@ -417,7 +417,7 @@ final class MonetizationBalanceItemNode: ListViewItemNode, ItemListItemNode { allowActionWhenDisabled: false, displaysProgress: false, action: { [weak self] in - guard let self, let item = self.item, item.isEnabled else { + guard let self, let item = self.item else { return } item.buyAdsAction?() diff --git a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift index ccc85856e5..5c2a590428 100644 --- a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift @@ -1114,11 +1114,11 @@ final class StoryItemSetViewListComponent: Component { let attributes = MarkdownAttributes(body: body, bold: bold, link: link, linkAttribute: { _ in return ("URL", "") }) let text: String - if self.configuration.listMode == .everyone && (self.query == nil || self.query == "") { + if self.configuration.listMode == .everyone && ((self.query ?? "") == "") { if component.storyItem.expirationTimestamp <= Int32(Date().timeIntervalSince1970) { if emptyButton == nil { if let views = component.storyItem.views, views.seenCount > 0 { - text = component.strings.Story_Views_ViewsNotRecorded + text = component.peerId.isGroupOrChannel ? component.strings.Story_Views_NoReactions : component.strings.Story_Views_ViewsNotRecorded } else { text = component.strings.Story_Views_ViewsExpired }