Add typing notification.
This commit is contained in:
@@ -319,7 +319,10 @@ Item {
|
||||
selectByMouse: true
|
||||
|
||||
text: currentRoom ? currentRoom.cachedInput : ""
|
||||
onTextChanged: currentRoom.cachedInput = text
|
||||
onTextChanged: {
|
||||
currentRoom.isTyping = true
|
||||
currentRoom.cachedInput = text
|
||||
}
|
||||
|
||||
Keys.onReturnPressed: {
|
||||
if (inputField.text) {
|
||||
@@ -332,6 +335,9 @@ Item {
|
||||
color: Material.theme == Material.Light ? "#eaeaea" : "#242424"
|
||||
}
|
||||
|
||||
ToolTip.visible: currentRoom && currentRoom.hasUsersTyping
|
||||
ToolTip.text: currentRoom ? currentRoom.usersTyping : ""
|
||||
|
||||
function postMessage(text) {
|
||||
if (text.trim().length === 0) { return }
|
||||
if(!currentRoom) { return }
|
||||
|
||||
Reference in New Issue
Block a user