浏览代码

improve method naming

cyberta 4 年之前
父节点
当前提交
d9a12b8abd
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift
  2. 1 1
      deltachat-ios/Chat/Views/DraftArea.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -392,7 +392,7 @@ class ChatViewController: UITableViewController {
     }
 
     private func configureDraftArea(draft: DraftModel) {
-        draftArea.configureDraftArea(draft: draft)
+        draftArea.configure(draft: draft)
         // setStackViewItems recalculates the proper messageInputBar height
         messageInputBar.setStackViewItems([draftArea], forStack: .top, animated: true)
     }

+ 1 - 1
deltachat-ios/Chat/Views/DraftArea.swift

@@ -65,7 +65,7 @@ public class DraftArea: UIView, InputItem {
         mainContentView.fillSuperview()
     }
 
-    public func configureDraftArea(draft: DraftModel) {
+    public func configure(draft: DraftModel) {
         guard let  chatInputBar = inputBarAccessoryView as? ChatInputBar else {
             safe_fatalError("Expecting inputBarAccessoryView of type ChatInputBar")
             return