mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix folder preview button
This commit is contained in:
parent
e66f240918
commit
09a60ba5df
@ -936,7 +936,7 @@ private final class ChatFolderLinkPreviewScreenComponent: Component {
|
|||||||
} else if let linkContents = component.linkContents {
|
} else if let linkContents = component.linkContents {
|
||||||
actionButtonBadge = max(0, self.selectedItems.count - (linkContents.peers.count - canAddChatCount))
|
actionButtonBadge = max(0, self.selectedItems.count - (linkContents.peers.count - canAddChatCount))
|
||||||
if linkContents.localFilterId != nil {
|
if linkContents.localFilterId != nil {
|
||||||
if self.selectedItems.isEmpty {
|
if actionButtonBadge == 0 {
|
||||||
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonDoNotJoinChats
|
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonDoNotJoinChats
|
||||||
} else {
|
} else {
|
||||||
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonJoinChats
|
actionButtonTitle = environment.strings.FolderLinkPreview_ButtonJoinChats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user