More typing notification improvements
This commit is contained in:
@@ -122,7 +122,7 @@ ToolBar {
|
|||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: repeatTimer
|
id: repeatTimer
|
||||||
interval: 3000
|
interval: 5000
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendMessage(event) {
|
function sendMessage(event) {
|
||||||
@@ -131,6 +131,7 @@ ToolBar {
|
|||||||
} else if (event.modifiers & Qt.ShiftModifier) {
|
} else if (event.modifiers & Qt.ShiftModifier) {
|
||||||
inputField.insert(cursorPosition, "\n")
|
inputField.insert(cursorPosition, "\n")
|
||||||
} else {
|
} else {
|
||||||
|
currentRoom.sendTypingNotification(false)
|
||||||
chatBar.postMessage()
|
chatBar.postMessage()
|
||||||
}
|
}
|
||||||
isCompleting = false;
|
isCompleting = false;
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ QVariantList NeoChatRoom::getUsersTyping() const
|
|||||||
|
|
||||||
void NeoChatRoom::sendTypingNotification(bool isTyping)
|
void NeoChatRoom::sendTypingNotification(bool isTyping)
|
||||||
{
|
{
|
||||||
connection()->callApi<SetTypingJob>(BackgroundRequest, localUser()->id(), id(), isTyping, 3000);
|
connection()->callApi<SetTypingJob>(BackgroundRequest, localUser()->id(), id(), isTyping, 10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
const RoomMessageEvent *NeoChatRoom::lastEvent(bool ignoreStateEvent) const
|
const RoomMessageEvent *NeoChatRoom::lastEvent(bool ignoreStateEvent) const
|
||||||
|
|||||||
Reference in New Issue
Block a user