aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Fourchan.hpp5
-rw-r--r--plugins/Matrix.hpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Fourchan.hpp b/plugins/Fourchan.hpp
index b9e5b74..903d534 100644
--- a/plugins/Fourchan.hpp
+++ b/plugins/Fourchan.hpp
@@ -14,11 +14,12 @@ namespace QuickMedia {
const std::string resources_root;
};
- class FourchanThreadListPage : public Page {
+ class FourchanThreadListPage : public LazyFetchPage {
public:
- FourchanThreadListPage(Program *program, std::string title, std::string board_id) : Page(program), title(std::move(title)), board_id(std::move(board_id)) {}
+ FourchanThreadListPage(Program *program, std::string title, std::string board_id) : LazyFetchPage(program), title(std::move(title)), board_id(std::move(board_id)) {}
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;
+ PluginResult lazy_fetch(BodyItems &result_items) override;
const std::string title;
const std::string board_id;
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 71d9664..8e96c54 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -256,7 +256,7 @@ namespace QuickMedia {
MatrixRoomTagsPage *room_tags_page;
MatrixInvitesPage *invites_page;
private:
- void update_room_description(RoomData *room, Messages &new_messages, bool is_initial_sync);
+ void update_room_description(RoomData *room, Messages &new_messages, bool is_initial_sync, bool sync_is_cache);
void update_pending_room_messages(MatrixPageType page_type);
private:
struct RoomMessagesData {