Browse Source

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 years ago
parent
commit
67139b584f

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

@@ -520,13 +520,6 @@ class ChatViewController: UITableViewController {
                     if self.messageInputBar.isHidden {
                         self.configureUIForWriting()
                         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 {
                     if !self.messageInputBar.isHidden {

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

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