diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 0eb8766..4a25f74 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -187,6 +187,7 @@ namespace QuickMedia { const Messages& get_messages_thread_unsafe() const; const std::vector<std::string>& get_pinned_events_thread_unsafe() const; + void clear_messages(); bool has_prev_batch(); void set_prev_batch(const std::string &new_prev_batch); @@ -317,6 +318,7 @@ namespace QuickMedia { // Note: calling |room| methods inside this function is not allowed virtual void room_remove_tag(RoomData *room, const std::string &tag) = 0; virtual void room_add_new_messages(RoomData *room, const Messages &messages, bool is_initial_sync, MessageDirection message_dir) = 0; + virtual void room_clear_messages(RoomData *room) = 0; virtual void add_invite(const std::string &room_id, const Invite &invite) = 0; virtual void remove_invite(const std::string &room_id) = 0; @@ -349,6 +351,7 @@ namespace QuickMedia { void room_add_tag(RoomData *room, const std::string &tag) override; void room_remove_tag(RoomData *room, const std::string &tag) override; void room_add_new_messages(RoomData *room, const Messages &messages, bool is_initial_sync, MessageDirection message_dir) override; + void room_clear_messages(RoomData *room) override; void add_invite(const std::string &room_id, const Invite &invite) override; void remove_invite(const std::string &room_id) override; @@ -567,6 +570,7 @@ namespace QuickMedia { Body *chat_body = nullptr; bool messages_tab_visible = false; + bool is_regular_navigation = true; const std::string jump_to_event_id; private: |