|
@@ -506,8 +506,14 @@ class ChatViewController: UITableViewController {
|
|
|
draftArea.configure(draft: draft)
|
|
|
if draft.isEditing {
|
|
|
messageInputBar.setMiddleContentView(editingBar, animated: false)
|
|
|
+ messageInputBar.setLeftStackViewWidthConstant(to: 0, animated: false)
|
|
|
+ messageInputBar.setRightStackViewWidthConstant(to: 0, animated: false)
|
|
|
+ messageInputBar.padding = UIEdgeInsets(top: 6, left: 0, bottom: 6, right: 0)
|
|
|
} else {
|
|
|
messageInputBar.setMiddleContentView(messageInputBar.inputTextView, animated: false)
|
|
|
+ messageInputBar.setLeftStackViewWidthConstant(to: 40, animated: false)
|
|
|
+ messageInputBar.setRightStackViewWidthConstant(to: 40, animated: false)
|
|
|
+ messageInputBar.padding = UIEdgeInsets(top: 6, left: 6, bottom: 6, right: 12)
|
|
|
}
|
|
|
messageInputBar.setStackViewItems([draftArea], forStack: .top, animated: true)
|
|
|
}
|