diff options
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r-- | plugins/Matrix.hpp | 5 |
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; |