From ff4f4af22aecbf6d58ade8ac07d1df4ada14ee91 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Mon, 12 Jun 2023 09:53:42 +0200 Subject: [PATCH] Synchronous display of last message in order to avoid waiting feelings when sending/receiving a chat message. Hide message headers for notice. --- linphone-app/ui/modules/Linphone/Chat/Chat.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone-app/ui/modules/Linphone/Chat/Chat.qml b/linphone-app/ui/modules/Linphone/Chat/Chat.qml index f1211724d..4162ff846 100644 --- a/linphone-app/ui/modules/Linphone/Chat/Chat.qml +++ b/linphone-app/ui/modules/Linphone/Chat/Chat.qml @@ -195,7 +195,7 @@ Rectangle { Layout.rightMargin: ChatStyle.entry.message.outgoing.areaSize spacing:0 // Display time. - visible: !entry.isTopGrouped// && !entry.isNotice + visible: !entry.isTopGrouped && !entry.isNotice Text { id:timeDisplay @@ -235,7 +235,7 @@ Rectangle { Layout.fillWidth: true source: Logic.getComponentFromEntry(entry.chatEntry) z:1 - asynchronous: true + asynchronous: index != chat.count - 1 property int loaderIndex: 0 function updateSync(){ if( asynchronous && loaderIndex > 0 && chat.remainingLoadersCount - loaderIndex - chat.syncLoaderBatch <= 0 ) asynchronous = false// Sync load the end