diff options
| author | Marvin W <git@larma.de> | 2026-07-18 18:10:27 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-08-02 12:44:10 +0200 |
| commit | 64f09ce50063e6ccc135a535fe98f58751d7ac7d (patch) | |
| tree | f8e407f0ab94a44ef1208202df3778ca10f89cb5 /main/src/ui/conversation_view_controller.vala | |
| parent | 45723ac201c1905571f9f78c8c970828db97139a (diff) | |
Add support for XEP-0490 Message Displayed Synchronization
Diffstat (limited to 'main/src/ui/conversation_view_controller.vala')
| -rw-r--r-- | main/src/ui/conversation_view_controller.vala | 10 |
1 files changed, 6 insertions, 4 deletions
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 |
