Эх сурвалжийг харах

use BasicCell for ephemeralMessage options

cyberta 5 жил өмнө
parent
commit
a7b6cc307a

+ 3 - 3
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -26,9 +26,9 @@ class ContactDetailViewController: UITableViewController {
         return cell
     }()
 
-    private lazy var ephemeralMessagesCell: UITableViewCell = {
-        let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
-        cell.textLabel?.text = String.localized("ephemeral_messages")
+    private lazy var ephemeralMessagesCell: BasicCell = {
+        let cell = BasicCell(style: .default, reuseIdentifier: nil)
+        cell.title.text = String.localized("ephemeral_messages")
         cell.selectionStyle = .none
         cell.accessoryType = .disclosureIndicator
         return cell

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

@@ -90,9 +90,9 @@ class GroupChatDetailViewController: UIViewController {
         return header
     }()
 
-    private lazy var ephemeralMessagesCell: UITableViewCell = {
-        let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
-        cell.textLabel?.text = String.localized("ephemeral_messages")
+    private lazy var ephemeralMessagesCell: BasicCell = {
+        let cell = BasicCell(style: .default, reuseIdentifier: nil)
+        cell.title.text = String.localized("ephemeral_messages")
         cell.selectionStyle = .none
         cell.accessoryType = .disclosureIndicator
         return cell