Updated folder pinned chats interaction

This commit is contained in:
Ali
2020-03-16 23:42:12 +05:30
parent 899e00fc9e
commit b69ce50986
7 changed files with 146 additions and 76 deletions

View File

@@ -544,7 +544,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController,
})
})
})))
if let filter = filters.first(where: { $0.id == id }), filter.data.includePeers.count < 100 {
if let filter = filters.first(where: { $0.id == id }), filter.data.includePeers.peers.count < 100 {
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.ChatList_AddChatsToFolder, icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Add"), color: theme.contextMenu.primaryColor)
}, action: { c, f in