From 12832b3c6439057c03c68aed8558022031da5bed Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Tue, 2 Nov 2021 00:28:39 +0100
Subject: [PATCH] Fix loading spinner when switching to a fully loaded room

fixes #754
---
 src/timeline/EventStore.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp
index d7296a7c9..a1f4c67f3 100644
--- a/src/timeline/EventStore.cpp
+++ b/src/timeline/EventStore.cpp
@@ -819,8 +819,10 @@ EventStore::decryptionError(std::string id)
 void
 EventStore::fetchMore()
 {
-    if (noMoreMessages)
+    if (noMoreMessages) {
+        emit fetchedMore();
         return;
+    }
 
     mtx::http::MessagesOpts opts;
     opts.room_id = room_id_;
-- 
GitLab