From 64f09ce50063e6ccc135a535fe98f58751d7ac7d Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 18 Jul 2026 18:10:27 +0200 Subject: Add support for XEP-0490 Message Displayed Synchronization --- main/src/ui/conversation_view_controller.vala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'main/src/ui/conversation_view_controller.vala') diff --git a/main/src/ui/conversation_view_controller.vala b/main/src/ui/conversation_view_controller.vala index 08f9dd5d..ef13b026 100644 --- a/main/src/ui/conversation_view_controller.vala +++ b/main/src/ui/conversation_view_controller.vala @@ -56,12 +56,14 @@ public class ConversationViewController : Object { // goto-end floating button var vadjustment = view.conversation_frame.scrolled.vadjustment; vadjustment.notify["value"].connect(() => { - bool button_active = vadjustment.value < vadjustment.upper - vadjustment.page_size; - view.goto_end_revealer.reveal_child = button_active; - view.goto_end_revealer.visible = button_active; + debug_here(); + bool scrolled_up = vadjustment.value < vadjustment.upper - vadjustment.page_size; + view.goto_end_revealer.reveal_child = scrolled_up; + view.goto_end_revealer.visible = scrolled_up; + stream_interactor.get_module(ChatInteraction.IDENTITY).on_scrolled_down_changed(!scrolled_up && view.conversation_frame.at_current_content, conversation); }); view.goto_end_button.clicked.connect(() => { - view.conversation_frame.initialize_for_conversation(conversation); + view.conversation_frame.initialize_for_conversation(conversation, true); }); // Update conversation topic -- cgit v1.3