From 4e3a32ea4478e547215c6775313aaded3bc16b08 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 16 Nov 2020 14:48:26 +0100 Subject: Matrix: do not continuously fetch messages when currently showing pinned messages tab --- src/QuickMedia.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/QuickMedia.cpp') 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; -- cgit v1.2.3