mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-22 13:34:44 +00:00
Fix expired view list state when not premium
This commit is contained in:
parent
0533ec4a43
commit
da36063a6e
@ -793,7 +793,7 @@ final class StoryItemSetViewListComponent: Component {
|
||||
|
||||
var emptyButtonTransition = transition
|
||||
let emptyButton: ComponentView<Empty>?
|
||||
if !component.hasPremium, let views = component.storyItem.views, views.seenCount != 0 {
|
||||
if self.query == nil, !component.hasPremium, let views = component.storyItem.views, views.seenCount != 0 {
|
||||
if let current = self.emptyButton {
|
||||
emptyButton = current
|
||||
} else {
|
||||
@ -1277,6 +1277,9 @@ final class StoryItemSetViewListComponent: Component {
|
||||
var displayModeSelector = false
|
||||
var displaySearchBar = false
|
||||
var displaySortSelector = false
|
||||
|
||||
if !component.hasPremium, component.storyItem.expirationTimestamp <= Int32(Date().timeIntervalSince1970) {
|
||||
} else {
|
||||
if let views = component.storyItem.views {
|
||||
if views.seenCount >= 20 {
|
||||
displayModeSelector = true
|
||||
@ -1290,6 +1293,7 @@ final class StoryItemSetViewListComponent: Component {
|
||||
} else {
|
||||
displayModeSelector = false
|
||||
}
|
||||
}
|
||||
|
||||
let navigationHeight: CGFloat
|
||||
if component.isSearchActive {
|
||||
|
Loading…
x
Reference in New Issue
Block a user