Fix folder preview button

This commit is contained in:
Ali 2023-04-28 20:20:25 +04:00
parent e66f240918
commit 09a60ba5df

View File

@ -936,7 +936,7 @@ private final class ChatFolderLinkPreviewScreenComponent: Component {
} else if let linkContents = component.linkContents {
actionButtonBadge = max(0, self.selectedItems.count - (linkContents.peers.count - canAddChatCount))
if linkContents.localFilterId != nil {
if self.selectedItems.isEmpty {
if actionButtonBadge == 0 {
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonDoNotJoinChats
} else {
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonJoinChats