role角色聊天交互优化
This commit is contained in:
parent
8db4792e61
commit
696ec2c0ec
|
|
@ -285,6 +285,16 @@ class SessionInputOperateView: UIView {
|
|||
}
|
||||
}
|
||||
|
||||
/// 恢复输入框到初始状态(高度 + 内容)
|
||||
func resetInputState() {
|
||||
inputTextView.text = ""
|
||||
inputTextView.setContentOffset(.zero, animated: false)
|
||||
inputTextView.snp.updateConstraints { make in
|
||||
make.height.equalTo(minTextViewHeight)
|
||||
}
|
||||
layoutIfNeeded()
|
||||
}
|
||||
|
||||
// MARK: - Action
|
||||
|
||||
@objc private func tapGiftButton() {
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ extension SessionController {
|
|||
}
|
||||
|
||||
func hideOperateView(){
|
||||
hideAllBottomViews(except: [inputEntrance])
|
||||
hideAllBottomViews(except: [inputEntrance, toolView])
|
||||
}
|
||||
|
||||
// MARK: - Functions
|
||||
|
|
@ -298,7 +298,7 @@ extension SessionController: SessionInputOperateViewDelegate{
|
|||
guard text.isEmpty == false else { return }
|
||||
|
||||
inputBar.clearInputDatas()
|
||||
inputEntrance.inputTextView.text = ""
|
||||
inputEntrance.resetInputState()
|
||||
|
||||
if isStreamChatMode {
|
||||
appendOutgoingStreamMessage(text)
|
||||
|
|
|
|||
Loading…
Reference in New Issue