mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-28 19:05:49 +00:00
Various fixes
This commit is contained in:
parent
afc45743e3
commit
afffa4f530
@ -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?()
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user