aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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);