aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-05-06 00:27:21 +0200
committerdec05eba <dec05eba@protonmail.com>2023-05-06 00:27:21 +0200
commit4aa395334456e04eb21e36c85295977feb4e89b0 (patch)
tree86f78b11cca5c4d46ea3b74012824f49907cc70c /plugins
parent412340645c759e6da16e9185da34a4218ab64507 (diff)
Matrix: try to fix missing messages (limited room messages)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp4
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: