aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-04 15:34:03 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-04 15:34:03 +0100
commite9d9e355f23f306198b0c49d9d24892514a1b2a5 (patch)
tree1bebb1db68ba10121ed7c5a614491c2cf6ec1c36 /plugins
parent903d996e10401ec93a03b813cbc6ac4ace6a5dfa (diff)
Matrix: hack: fetch latest messages even if sync is not finished when going to room
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index f4a3200..b7163d7 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -402,7 +402,7 @@ namespace QuickMedia {
void get_all_synced_room_messages(RoomData *room, Messages &messages);
void get_all_pinned_events(RoomData *room, std::vector<std::string> &events);
- PluginResult get_previous_room_messages(RoomData *room, Messages &messages);
+ PluginResult get_previous_room_messages(RoomData *room, Messages &messages, bool latest_messages = false);
// |url| should only be set when uploading media.
// TODO: Make api better.
@@ -450,7 +450,7 @@ namespace QuickMedia {
PluginResult parse_notifications(const rapidjson::Value &notifications_json);
PluginResult parse_sync_account_data(const rapidjson::Value &account_data_json, std::optional<std::set<std::string>> &dm_rooms);
PluginResult parse_sync_room_data(const rapidjson::Value &rooms_json);
- PluginResult get_previous_room_messages(RoomData *room_data);
+ PluginResult get_previous_room_messages(RoomData *room_data, bool latest_messages);
void events_add_user_info(const rapidjson::Value &events_json, RoomData *room_data);
std::shared_ptr<UserInfo> parse_user_info(const rapidjson::Value &json, const std::string &user_id, RoomData *room_data);
void events_add_user_read_markers(const rapidjson::Value &events_json, RoomData *room_data);