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

renamed CustomCell to CustomMessageCell to improve readability

Bastian van de Wetering 6 жил өмнө
parent
commit
dc42acec91

+ 4 - 4
deltachat-ios.xcodeproj/project.pbxproj

@@ -23,7 +23,7 @@
 		78E45E4021D3D70700D4B15E /* ContactListController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78E45E3F21D3D70700D4B15E /* ContactListController.swift */; };
 		78E45E4221D3DB4000D4B15E /* UIViewController+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78E45E4121D3DB4000D4B15E /* UIViewController+Extension.swift */; };
 		78E45E4421D3F14A00D4B15E /* UIImage+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78E45E4321D3F14A00D4B15E /* UIImage+Extension.swift */; };
-		78E45E4C21D404AE00D4B15E /* CustomCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78E45E4B21D404AE00D4B15E /* CustomCell.swift */; };
+		78E45E4C21D404AE00D4B15E /* CustomMessageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78E45E4B21D404AE00D4B15E /* CustomMessageCell.swift */; };
 		78ED838321D5379000243125 /* TextFieldCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78ED838221D5379000243125 /* TextFieldCell.swift */; };
 		78ED838D21D577D000243125 /* events.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78ED838C21D577D000243125 /* events.swift */; };
 		78ED838F21D5927A00243125 /* ProfileViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 78ED838E21D5927A00243125 /* ProfileViewController.swift */; };
@@ -98,7 +98,7 @@
 		78E45E3F21D3D70700D4B15E /* ContactListController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactListController.swift; sourceTree = "<group>"; };
 		78E45E4121D3DB4000D4B15E /* UIViewController+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Extension.swift"; sourceTree = "<group>"; };
 		78E45E4321D3F14A00D4B15E /* UIImage+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIImage+Extension.swift"; sourceTree = "<group>"; };
-		78E45E4B21D404AE00D4B15E /* CustomCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomCell.swift; sourceTree = "<group>"; };
+		78E45E4B21D404AE00D4B15E /* CustomMessageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomMessageCell.swift; sourceTree = "<group>"; };
 		78ED838221D5379000243125 /* TextFieldCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextFieldCell.swift; sourceTree = "<group>"; };
 		78ED838C21D577D000243125 /* events.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = events.swift; sourceTree = "<group>"; };
 		78ED838E21D5927A00243125 /* ProfileViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProfileViewController.swift; sourceTree = "<group>"; };
@@ -325,7 +325,7 @@
 		AE851AC3227C695900ED86F0 /* View */ = {
 			isa = PBXGroup;
 			children = (
-				78E45E4B21D404AE00D4B15E /* CustomCell.swift */,
+				78E45E4B21D404AE00D4B15E /* CustomMessageCell.swift */,
 				70B8882D2091B8550074812E /* ContactCell.swift */,
 				78ED839321D5AF8A00243125 /* QrCodeView.swift */,
 				78ED838221D5379000243125 /* TextFieldCell.swift */,
@@ -648,7 +648,7 @@
 				AEE56D7D2253ADB4007DC082 /* HudHandler.swift in Sources */,
 				AEACE2E51FB32E1900DCDD78 /* Utils.swift in Sources */,
 				789E879D21D6DF86003ED1C5 /* ProgressHud.swift in Sources */,
-				78E45E4C21D404AE00D4B15E /* CustomCell.swift in Sources */,
+				78E45E4C21D404AE00D4B15E /* CustomMessageCell.swift in Sources */,
 				AE38B31A2267328200EC37A1 /* Colors.swift in Sources */,
 				789E879621D6CB58003ED1C5 /* QrCodeReaderController.swift in Sources */,
 				7A451DBE1FB4AD0700177250 /* Wrapper.swift in Sources */,

+ 1 - 1
deltachat-ios/AppDelegate.swift

@@ -182,7 +182,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
       self.registerBackgroundTask()
       while self.state == .running {
         dc_perform_imap_jobs(mailboxPointer)
-        dc_perform_imap_fetch(mailboxPointer)
+      	dc_perform_imap_fetch(mailboxPointer)
         dc_perform_imap_idle(mailboxPointer)
       }
       if self.backgroundTask != .invalid {

+ 2 - 2
deltachat-ios/Controller/ChatViewController.swift

@@ -54,7 +54,7 @@ class ChatViewController: MessagesViewController {
 	}
 
 	override func viewDidLoad() {
-		messagesCollectionView.register(CustomCell.self)
+		messagesCollectionView.register(CustomMessageCell.self)
 		super.viewDidLoad()
 		view.backgroundColor = DCColors.chatBackgroundColor
 		if !MRConfig.configured {
@@ -411,7 +411,7 @@ class ChatViewController: MessagesViewController {
 			cell.configure(with: message, at: indexPath, and: messagesCollectionView)
 			return cell
 		case .custom:
-			let cell = messagesCollectionView.dequeueReusableCell(CustomCell.self, for: indexPath)
+			let cell = messagesCollectionView.dequeueReusableCell(CustomMessageCell.self, for: indexPath)
 			cell.configure(with: message, at: indexPath, and: messagesCollectionView)
 			return cell
 		case .audio(_):

+ 3 - 1
deltachat-ios/View/CustomCell.swift → deltachat-ios/View/CustomMessageCell.swift

@@ -8,7 +8,8 @@ import MessageKit
 //
 import UIKit
 
-open class CustomCell: UICollectionViewCell {
+
+open class CustomMessageCell: UICollectionViewCell {
   let label = UILabel()
 
   public override init(frame: CGRect) {
@@ -43,3 +44,4 @@ open class CustomCell: UICollectionViewCell {
     }
   }
 }
+