Skip to content

Commit

Permalink
Fix folder preview button
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali committed Apr 28, 2023
1 parent e66f240 commit 09a60ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09a60ba

Please sign in to comment.