From cd79087afbcf87ad7de1d76e189bd7ab675b53a4 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Fri, 21 Nov 2025 16:15:29 +0100 Subject: [PATCH] todo : fix last item visible property --- Linphone/data/languages/de.ts | 20 +++++++++---------- Linphone/data/languages/en.ts | 20 +++++++++---------- Linphone/data/languages/fr.ts | 20 +++++++++---------- .../Display/Chat/ChatMessagesListView.qml | 3 +++ 4 files changed, 33 insertions(+), 30 deletions(-) diff --git a/Linphone/data/languages/de.ts b/Linphone/data/languages/de.ts index eb9185f1f..25d2a1a39 100644 --- a/Linphone/data/languages/de.ts +++ b/Linphone/data/languages/de.ts @@ -2453,58 +2453,58 @@ Error ChatMessagesListView - - + + popup_info_find_message_title Find message - + info_popup_no_result_message No result found - + info_popup_first_result_message First result reached - + info_popup_last_result_message Last result reached - + chat_message_list_encrypted_header_title End to end encrypted chat - + unencrypted_conversation_warning This conversation is not encrypted ! - + chat_message_list_encrypted_header_message Messages in this conversation are e2e encrypted. Only your correspondent can decrypt them. - + chat_message_list_not_encrypted_header_message Messages are not end to end encrypted, may sure you don't share any sensitive information ! - + chat_message_is_writing_info %1 is writing… diff --git a/Linphone/data/languages/en.ts b/Linphone/data/languages/en.ts index 8d1d26009..016d32d38 100644 --- a/Linphone/data/languages/en.ts +++ b/Linphone/data/languages/en.ts @@ -2425,44 +2425,44 @@ Error ChatMessagesListView - - + + popup_info_find_message_title Find message Find message - + info_popup_no_result_message No result found No result found - + info_popup_first_result_message First result reached First result reached - + info_popup_last_result_message Last result reached Last result reached - + chat_message_list_encrypted_header_title End to end encrypted chat End to end encrypted chat - + unencrypted_conversation_warning This conversation is not encrypted ! This conversation is not encrypted ! - + chat_message_list_encrypted_header_message Messages in this conversation are e2e encrypted. Only your correspondent can decrypt them. @@ -2470,7 +2470,7 @@ Error Only your correspondent can decrypt them. - + chat_message_list_not_encrypted_header_message Messages are not end to end encrypted, may sure you don't share any sensitive information ! @@ -2478,7 +2478,7 @@ Only your correspondent can decrypt them. may sure you don't share any sensitive information ! - + chat_message_is_writing_info %1 is writing… %1 is writing… diff --git a/Linphone/data/languages/fr.ts b/Linphone/data/languages/fr.ts index 1f806520e..84cc7f60a 100644 --- a/Linphone/data/languages/fr.ts +++ b/Linphone/data/languages/fr.ts @@ -2425,44 +2425,44 @@ Error ChatMessagesListView - - + + popup_info_find_message_title Find message Trouver un message - + info_popup_no_result_message No result found Aucun résultat trouvé - + info_popup_first_result_message First result reached Premier résultat atteint - + info_popup_last_result_message Last result reached Dernier résultat atteint - + chat_message_list_encrypted_header_title End to end encrypted chat Conversation chiffrée de bout en bout - + unencrypted_conversation_warning This conversation is not encrypted ! Cette conversation n'est pas chiffrée ! - + chat_message_list_encrypted_header_message Messages in this conversation are e2e encrypted. Only your correspondent can decrypt them. @@ -2470,7 +2470,7 @@ Error en bout. Seul votre correspondant peut les déchiffrer. - + chat_message_list_not_encrypted_header_message Messages are not end to end encrypted, may sure you don't share any sensitive information ! @@ -2478,7 +2478,7 @@ en bout. Seul votre correspondant peut les déchiffrer. assurez-vous de ne pas partager d’informations sensibles ! - + chat_message_is_writing_info %1 is writing… %1 est en train d'écrire… diff --git a/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml b/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml index 05acbf862..21b8db2ef 100644 --- a/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml +++ b/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml @@ -14,6 +14,7 @@ ListView { property ChatGui chat property color backgroundColor property bool lastItemVisible: false + onLastItemVisibleChanged: console.log("last item visible", lastItemVisible) property int lastIndexFoundWithFilter: -1 property real busyIndicatorSize: Utils.getSizeWithScreenRatio(60) property bool loading: false @@ -89,6 +90,7 @@ ListView { onEventInserted: (index, gui) => { if (!mainItem.visible) return if(mainItem.lastItemVisible) { + console.log("inserted && last item visible, position at end") mainItem.positionViewAtIndex(index, ListView.Beginning) markIndexAsRead(index) } @@ -245,6 +247,7 @@ ListView { chatMessage: modelData.core.chatMessageGui onIsFullyVisibleChanged: { if (index === 0) { + console.log("index 0 fully visible", isFullyVisible) mainItem.lastItemVisible = isFullyVisible } }