aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-03 01:26:12 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-03 01:26:12 +0100
commit45740fa881c495bc91ff05c14dab6d80000cddb5 (patch)
treed56bf7bd8e71d1e44e12a3a07cc4607d9d4a2766 /src
parent16ca6e63f4fd1b407c826a5574dc20b3f9e71675 (diff)
Matrix: only scroll to bottom on first previous messages fetch
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp5
1 files 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, &current_room]() {
Messages messages;
if(matrix->get_previous_room_messages(current_room, messages) != PluginResult::OK)