|
@@ -201,16 +201,9 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
|
|
|
|
|
|
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
|
|
let section = indexPath.section
|
|
|
- let row = indexPath.row
|
|
|
switch section {
|
|
|
- case sectionGroupDetails:
|
|
|
- if row == sectionGroupDetailsRowAvatar {
|
|
|
- return AvatarSelectionCell.cellHeight
|
|
|
- } else {
|
|
|
- return Constants.defaultCellHeight
|
|
|
- }
|
|
|
- case sectionInvite:
|
|
|
- return Constants.defaultCellHeight
|
|
|
+ case sectionGroupDetails, sectionInvite:
|
|
|
+ return UITableView.automaticDimension
|
|
|
default:
|
|
|
return ContactCell.cellHeight
|
|
|
}
|