Various fixes

This commit is contained in:
Ilya Laktyushin 2024-10-27 19:33:45 +04:00
parent afc45743e3
commit afffa4f530
2 changed files with 3 additions and 3 deletions

View File

@ -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?()

View File

@ -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
}