Synchronous display of last message in order to avoid waiting feelings when sending/receiving a chat message.

Hide message headers for notice.
This commit is contained in:
Julien Wadel 2023-06-12 09:53:42 +02:00
parent 29276cfc49
commit ff4f4af22a

View file

@ -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