瀏覽代碼

fix the messageInputBar appearance but, seems as if inputAccessoryView is not reloaded that way. things are fine some far, however, only the height of the scrollbar is weird if the messageInputBar is hidden (this is no new bug, also before, after accepting a mailinglist, this was wrong)

B. Petersen 3 年之前
父節點
當前提交
67139b584f
共有 2 個文件被更改,包括 1 次插入8 次删除
  1. 0 7
      deltachat-ios/Chat/ChatViewController.swift
  2. 1 1
      deltachat-ios/Chat/Views/ChatTableView.swift

+ 0 - 7
deltachat-ios/Chat/ChatViewController.swift

@@ -520,13 +520,6 @@ class ChatViewController: UITableViewController {
                     if self.messageInputBar.isHidden {
                     if self.messageInputBar.isHidden {
                         self.configureUIForWriting()
                         self.configureUIForWriting()
                         self.messageInputBar.isHidden = false
                         self.messageInputBar.isHidden = false
-
-                        // TODO: if the viewController is opened initially with hidden input bar,
-                        // it is _not_ shown that way. however, it is kind of there, opening+closing the profile shows it.
-                        //
-                        // (if the the viewController is opened initially with input bar,
-                        // showing and hiding works any number of times)
-                        // (you can test that with a second device/emulator and add/remove the other member)
                     }
                     }
                 } else if !dcChat.isContactRequest {
                 } else if !dcChat.isContactRequest {
                     if !self.messageInputBar.isHidden {
                     if !self.messageInputBar.isHidden {

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

@@ -6,7 +6,7 @@ class ChatTableView: UITableView {
     var messageInputBar: InputBarAccessoryView
     var messageInputBar: InputBarAccessoryView
     
     
     override var inputAccessoryView: UIView? {
     override var inputAccessoryView: UIView? {
-        return messageInputBar.isHidden ? nil : messageInputBar
+        return messageInputBar
     }
     }
 
 
     override var canBecomeFirstResponder: Bool {
     override var canBecomeFirstResponder: Bool {