aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-16 14:48:26 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-16 14:48:26 +0100
commit4e3a32ea4478e547215c6775313aaded3bc16b08 (patch)
tree12a01077e0d2997663995d7c56648e15c74cba93 /src/QuickMedia.cpp
parent4eeaa5c2b889a22c23199247ccc87fb717e6cbcb (diff)
Matrix: do not continuously fetch messages when currently showing pinned messages tab
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index df2d63e..315fef0 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -4569,7 +4569,8 @@ namespace QuickMedia {
window.display();
- fetch_more_previous_messages_if_needed();
+ if(selected_tab == MESSAGES_TAB_INDEX)
+ fetch_more_previous_messages_if_needed();
if(matrix_chat_page->should_clear_data) {
matrix_chat_page->should_clear_data = false;