From 592063fc849288a91f24716580dc3c2b5558df4e Mon Sep 17 00:00:00 2001 From: Aleksei Savin Date: Sun, 14 Jun 2026 01:40:44 +0300 Subject: [PATCH] fix: keep My Story label visible in compact rail --- .../Sources/StoryPeerListItemComponent.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift index 99d913e031..5dd42b8d1d 100644 --- a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListItemComponent.swift @@ -1068,7 +1068,8 @@ public final class StoryPeerListItemComponent: Component { titleTransition.setPosition(view: self.titleContainer, position: titleContainerFrame.center) self.titleContainer.bounds = CGRect(origin: CGPoint(), size: titleContainerFrame.size) titleTransition.setScale(view: self.titleContainer, scale: effectiveScale) - titleTransition.setAlpha(view: self.titleContainer, alpha: component.expandedAlphaFraction) + let isOwnEmptyStoryItem = component.peer.id == component.context.account.peerId && !component.hasItems && component.ringAnimation == nil + titleTransition.setAlpha(view: self.titleContainer, alpha: isOwnEmptyStoryItem ? 1.0 : component.expandedAlphaFraction) if let ringAnimation = component.ringAnimation { var progressTransition = transition