Skip to content

Commit

Permalink
Only display footer in All Views
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali committed Aug 11, 2023
1 parent 3e2896e commit d63fc6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ final class StoryItemSetViewListComponent: Component {
}

var premiumFooterSize: CGSize?
if let viewListState = self.viewListState, viewListState.loadMoreToken == nil, !viewListState.items.isEmpty, let views = component.storyItem.views, views.seenCount > viewListState.totalCount, component.storyItem.expirationTimestamp <= Int32(Date().timeIntervalSince1970) {
if self.configuration.listMode == .everyone, let viewListState = self.viewListState, viewListState.loadMoreToken == nil, !viewListState.items.isEmpty, let views = component.storyItem.views, views.seenCount > viewListState.totalCount, component.storyItem.expirationTimestamp <= Int32(Date().timeIntervalSince1970) {
let premiumFooterText: ComponentView<Empty>
if let current = self.premiumFooterText {
premiumFooterText = current
Expand Down

0 comments on commit d63fc6c

Please sign in to comment.