aboutsummaryrefslogtreecommitdiff
path: root/plugins/Matrix.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-03 02:18:04 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-03 02:18:04 +0100
commitb3fbbd12c1c623e108103c5be20febbecc730777 (patch)
treeaddfd449f611daa3b58243f37dbe74ac0050a86e /plugins/Matrix.hpp
parent45740fa881c495bc91ff05c14dab6d80000cddb5 (diff)
Matrix: update body item filter when switching tab
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r--plugins/Matrix.hpp5
1 files changed, 4 insertions, 1 deletions
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<Tab> &result_tabs) override;
+ void on_navigate_to_page(Body *body) override;
+
void update() override;
void add_body_item(std::shared_ptr<BodyItem> 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;