Skip to content

Commit

Permalink
simplify group name handling
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Nov 12, 2023
1 parent 88ea3df commit ccce42a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deltachat-ios/Controller/NewGroupController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import UIKit
import DcCore

class NewGroupController: UITableViewController, MediaPickerDelegate {
var groupName: String = ""

var doneButton: UIBarButtonItem!
var contactIdsForGroup: Set<Int>
Expand Down Expand Up @@ -119,6 +118,7 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
}

@objc func doneButtonPressed() {
guard let groupName = groupNameCell.textField.text else { return }
let groupChatId: Int
if createBroadcast {
groupChatId = dcContext.createBroadcastList()
Expand Down Expand Up @@ -247,8 +247,6 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
}

private func updateGroupName(textView: UITextField) {
let name = textView.text ?? ""
groupName = name
checkDoneButton()
}

Expand Down

0 comments on commit ccce42a

Please sign in to comment.