From d63fc6cbcea1c22a60d9b9b2fbc435ecb66e4ae4 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Sat, 12 Aug 2023 01:34:01 +0400 Subject: [PATCH] Only display footer in All Views --- .../Sources/StoryItemSetViewListComponent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift index 8b6c04668cd..29de8c39897 100644 --- a/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetViewListComponent.swift @@ -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 if let current = self.premiumFooterText { premiumFooterText = current