mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 03:21:29 +00:00
Various fixes
This commit is contained in:
parent
afc45743e3
commit
afffa4f530
@ -417,7 +417,7 @@ final class MonetizationBalanceItemNode: ListViewItemNode, ItemListItemNode {
|
|||||||
allowActionWhenDisabled: false,
|
allowActionWhenDisabled: false,
|
||||||
displaysProgress: false,
|
displaysProgress: false,
|
||||||
action: { [weak self] in
|
action: { [weak self] in
|
||||||
guard let self, let item = self.item, item.isEnabled else {
|
guard let self, let item = self.item else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
item.buyAdsAction?()
|
item.buyAdsAction?()
|
||||||
|
|||||||
@ -1114,11 +1114,11 @@ final class StoryItemSetViewListComponent: Component {
|
|||||||
let attributes = MarkdownAttributes(body: body, bold: bold, link: link, linkAttribute: { _ in return ("URL", "") })
|
let attributes = MarkdownAttributes(body: body, bold: bold, link: link, linkAttribute: { _ in return ("URL", "") })
|
||||||
|
|
||||||
let text: String
|
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 component.storyItem.expirationTimestamp <= Int32(Date().timeIntervalSince1970) {
|
||||||
if emptyButton == nil {
|
if emptyButton == nil {
|
||||||
if let views = component.storyItem.views, views.seenCount > 0 {
|
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 {
|
} else {
|
||||||
text = component.strings.Story_Views_ViewsExpired
|
text = component.strings.Story_Views_ViewsExpired
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user