Skip to content

Commit 09a60ba

Browse files
author
Ali
committed
Fix folder preview button
1 parent e66f240 commit 09a60ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submodules/TelegramUI/Components/ChatFolderLinkPreviewScreen/Sources/ChatFolderLinkPreviewScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ private final class ChatFolderLinkPreviewScreenComponent: Component {
936936
} else if let linkContents = component.linkContents {
937937
actionButtonBadge = max(0, self.selectedItems.count - (linkContents.peers.count - canAddChatCount))
938938
if linkContents.localFilterId != nil {
939-
if self.selectedItems.isEmpty {
939+
if actionButtonBadge == 0 {
940940
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonDoNotJoinChats
941941
} else {
942942
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonJoinChats

0 commit comments

Comments
 (0)