aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-23 19:48:33 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-23 19:48:33 +0100
commitff0e832cb1f5b417eedcc7df016e3c5dae209d2b (patch)
tree7eb8b2cbc77ddcf2ab4582372a92ebedc257382b /plugins
parentd7e029c7f64922f4ec38763e9f3350ae9e7de05b (diff)
Matrix: remove room if loaded in cache but removed remote
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 2fb0d86..bae6e40 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -496,10 +496,10 @@ namespace QuickMedia {
bool use_tor = false;
private:
- PluginResult parse_sync_response(const rapidjson::Document &root, bool is_additional_messages_sync);
+ PluginResult parse_sync_response(const rapidjson::Document &root, bool is_additional_messages_sync, bool initial_sync);
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, bool is_additional_messages_sync);
+ PluginResult parse_sync_room_data(const rapidjson::Value &rooms_json, bool is_additional_messages_sync, bool initial_sync);
PluginResult get_previous_room_messages(RoomData *room_data, bool latest_messages, size_t &num_new_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);