@@ -33,7 +33,6 @@ class EditGroupViewController: UITableViewController {
self.chat = chat
self.avatarSelectionCell = AvatarSelectionCell(chat: chat)
super.init(style: .grouped)
- self.avatarSelectionCell.selectionStyle = .none
self.avatarSelectionCell.hintLabel.text = String.localized("group_avatar")
title = String.localized("menu_edit_group")
}
@@ -169,7 +169,6 @@ class EditSettingsController: UITableViewController, MediaPickerDelegate {
private func createPictureAndNameCell() -> AvatarSelectionCell {
let cell = AvatarSelectionCell(context: dcContext)
- cell.selectionStyle = .none
return cell
@@ -22,7 +22,6 @@ class GroupNameController: UITableViewController {
lazy var avatarSelectionCell: AvatarSelectionCell = {
let cell = AvatarSelectionCell(context: nil)
cell.hintLabel.text = String.localized("group_avatar")
}()
@@ -65,6 +65,7 @@ class AvatarSelectionCell: UITableViewCell {
let touchListener = UILongPressGestureRecognizer(target: self, action: #selector(onBadgeTouched))
touchListener.minimumPressDuration = 0
badge.addGestureRecognizer(touchListener)
+ selectionStyle = .none
func onInitialsChanged(text: String?) {