From 31d69c44e920768ba0fbb36f8e3accb99941990e Mon Sep 17 00:00:00 2001 From: Aleksei Savin Date: Sun, 14 Jun 2026 02:18:47 +0300 Subject: [PATCH] fix: remove own story hit target from compact rail --- .../Sources/StoryPeerListComponent.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift index 5e5238bfa7..6394b08f2b 100644 --- a/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift +++ b/submodules/TelegramUI/Components/Stories/StoryPeerListComponent/Sources/StoryPeerListComponent.swift @@ -1724,7 +1724,8 @@ public final class StoryPeerListComponent: Component { self.sortedItems.removeAll(keepingCapacity: true) if let storySubscriptions = component.storySubscriptions { - if !component.useHiddenList, let accountItem = storySubscriptions.accountItem { + let isCompactAvatarRail = availableSize.width <= 120.0 + if !component.useHiddenList, !isCompactAvatarRail, let accountItem = storySubscriptions.accountItem { self.sortedItems.append(accountItem) }