cyberta 5 anos atrás
pai
commit
61077733f7

+ 4 - 4
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -210,7 +210,7 @@ extension GroupChatDetailViewController: UITableViewDelegate, UITableViewDataSou
             }
             }
         case .memberManagement:
         case .memberManagement:
             guard let actionCell = tableView.dequeueReusableCell(withIdentifier: "actionCell", for: indexPath) as? ActionCell else {
             guard let actionCell = tableView.dequeueReusableCell(withIdentifier: "actionCell", for: indexPath) as? ActionCell else {
-                safe_fatalError("could not dequeu action cell")
+                safe_fatalError("could not dequeue action cell")
                 break
                 break
             }
             }
             if row == memberManagementRowAddMembers {
             if row == memberManagementRowAddMembers {
@@ -224,7 +224,7 @@ extension GroupChatDetailViewController: UITableViewDelegate, UITableViewDataSou
             return actionCell
             return actionCell
         case .members:
         case .members:
             guard let contactCell = tableView.dequeueReusableCell(withIdentifier: "contactCell", for: indexPath) as? ContactCell else {
             guard let contactCell = tableView.dequeueReusableCell(withIdentifier: "contactCell", for: indexPath) as? ContactCell else {
-                safe_fatalError("could not dequeu contactCell cell")
+                safe_fatalError("could not dequeue contactCell cell")
                 break
                 break
 
 
             }
             }
@@ -311,7 +311,7 @@ extension GroupChatDetailViewController: UITableViewDelegate, UITableViewDataSou
                 alert.addAction(UIAlertAction(title: String.localized("remove_desktop"), style: .destructive, handler: { _ in
                 alert.addAction(UIAlertAction(title: String.localized("remove_desktop"), style: .destructive, handler: { _ in
                     let success = dc_remove_contact_from_chat(mailboxPointer, UInt32(self.chat.id), UInt32(contact.id))
                     let success = dc_remove_contact_from_chat(mailboxPointer, UInt32(self.chat.id), UInt32(contact.id))
                     if success == 1 {
                     if success == 1 {
-                        self.removeGroupeMemberFromTableAt(indexPath)
+                        self.removeGroupMemberFromTableAt(indexPath)
                     }
                     }
                 }))
                 }))
                 alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .cancel, handler: nil))
                 alert.addAction(UIAlertAction(title: String.localized("cancel"), style: .cancel, handler: nil))
@@ -328,7 +328,7 @@ extension GroupChatDetailViewController: UITableViewDelegate, UITableViewDataSou
         return DcContact(id: groupMemberIds[row])
         return DcContact(id: groupMemberIds[row])
     }
     }
 
 
-    private func removeGroupeMemberFromTableAt(_ indexPath: IndexPath) {
+    private func removeGroupMemberFromTableAt(_ indexPath: IndexPath) {
         self.groupMemberIds.remove(at: indexPath.row)
         self.groupMemberIds.remove(at: indexPath.row)
         self.tableView.deleteRows(at: [indexPath], with: .automatic)
         self.tableView.deleteRows(at: [indexPath], with: .automatic)
         updateHeader()  // to display correct group size
         updateHeader()  // to display correct group size