From b3fbbd12c1c623e108103c5be20febbecc730777 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 3 Nov 2020 02:18:04 +0100 Subject: Matrix: update body item filter when switching tab --- plugins/Matrix.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/Matrix.hpp') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index cde502d..d9e6a97 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -252,12 +252,14 @@ namespace QuickMedia { class MatrixRoomsPage : public Page { public: - MatrixRoomsPage(Program *program, Body *body, std::string title, MatrixRoomTagsPage *room_tags_page = nullptr); + MatrixRoomsPage(Program *program, Body *body, std::string title, MatrixRoomTagsPage *room_tags_page, SearchBar *search_bar); ~MatrixRoomsPage() override; const char* get_title() const override { return title.c_str(); } PluginResult submit(const std::string &title, const std::string &url, std::vector &result_tabs) override; + void on_navigate_to_page(Body *body) override; + void update() override; void add_body_item(std::shared_ptr body_item); @@ -277,6 +279,7 @@ namespace QuickMedia { Body *body = nullptr; std::string title; MatrixRoomTagsPage *room_tags_page = nullptr; + SearchBar *search_bar = nullptr; MatrixChatPage *current_chat_page = nullptr; bool clear_data_on_update = false; bool sort_on_update = false; -- cgit v1.2.3