Don't clear chatbox text when starting a reply
This commit is contained in:
@@ -1209,6 +1209,9 @@ QString NeoChatRoom::chatBoxReplyId() const
|
||||
|
||||
void NeoChatRoom::setChatBoxReplyId(const QString &replyId)
|
||||
{
|
||||
if (replyId == m_chatBoxReplyId) {
|
||||
return;
|
||||
}
|
||||
m_chatBoxReplyId = replyId;
|
||||
Q_EMIT chatBoxReplyIdChanged();
|
||||
}
|
||||
@@ -1220,6 +1223,9 @@ QString NeoChatRoom::chatBoxEditId() const
|
||||
|
||||
void NeoChatRoom::setChatBoxEditId(const QString &editId)
|
||||
{
|
||||
if (editId == m_chatBoxEditId) {
|
||||
return;
|
||||
}
|
||||
m_chatBoxEditId = editId;
|
||||
Q_EMIT chatBoxEditIdChanged();
|
||||
}
|
||||
|
||||
@@ -239,7 +239,9 @@ QQC2.ToolBar {
|
||||
Connections {
|
||||
target: currentRoom
|
||||
function onChatBoxEditIdChanged() {
|
||||
chatBar.inputFieldText = currentRoom.chatBoxEditMessage
|
||||
if (currentRoom.chatBoxEditMessage.length > 0) {
|
||||
chatBar.inputFieldText = currentRoom.chatBoxEditMessage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user