From 96555dfc65034c46578309f39ae0f754e1acb0f8 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Mon, 20 Dec 2021 21:10:36 +0100 Subject: Less clicks: focus compose pane on chat selection. - Also we now use Enter to send chat, and Ctrl/Shift+Enter to add newlines. Updated the F1 help accordingly. - there was no way to refresh the message list until you clicked on the chat again, so I moved updateMessagelist() to trigger on every incoming message. We have working block mechanisms now, so it shouldn't be that much of a bother if someone spams you. - To speed up the delay between the UI displaying the message has waiting to be sent, upon sending a message, the startIo() function is now triggered. --- qml/ChatPage.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qml/ChatPage.qml') diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml index fb99eeb..b830bc0 100644 --- a/qml/ChatPage.qml +++ b/qml/ChatPage.qml @@ -54,10 +54,8 @@ Kirigami.ScrollablePage { } function onIncomingMessage(accountId, chatId, msgId) { + updateMessagelist(); console.log("Incoming message for chat " + chatId); - if (chatId == root.chatId) - root.updateMessagelist(); - } function onMessagesChanged(accountId, chatId, msgId) { -- cgit v1.2.3-70-g09d2