From 45740fa881c495bc91ff05c14dab6d80000cddb5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 3 Nov 2020 01:26:12 +0100 Subject: Matrix: only scroll to bottom on first previous messages fetch --- src/QuickMedia.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 318aba8..61e59a3 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3427,8 +3427,9 @@ namespace QuickMedia { sf::Vertex gradient_points[4]; double gradient_inc = 0; - bool initial_prev_messages_fetch = true; - if(num_messages_in_room < 10) { + bool initial_prev_messages_fetch = false; + if(num_messages_in_room < 10 && matrix->is_initial_sync_finished()) { + initial_prev_messages_fetch = true; previous_messages_future = [this, ¤t_room]() { Messages messages; if(matrix->get_previous_room_messages(current_room, messages) != PluginResult::OK) -- cgit v1.2.3