diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-03 02:49:40 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-03 02:49:40 +0100 |
commit | e493614b775c3d9c1684a010bac28f0523a103d6 (patch) | |
tree | 084a5aaa608354b9b68f03c00872d7fd9bd850a0 /plugins | |
parent | b3fbbd12c1c623e108103c5be20febbecc730777 (diff) |
Matrix: fetch user if the user is not available for some reason (synapse bug?)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index d9e6a97..20ad7da 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -451,6 +451,7 @@ namespace QuickMedia { PluginResult parse_sync_room_data(const rapidjson::Value &rooms_json); PluginResult get_previous_room_messages(RoomData *room_data); 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); void events_set_user_read_marker(const rapidjson::Value &events_json, RoomData *room_data, std::shared_ptr<UserInfo> &me); void events_add_messages(const rapidjson::Value &events_json, RoomData *room_data, MessageDirection message_dir, bool has_unread_notifications); @@ -469,6 +470,7 @@ namespace QuickMedia { void set_next_batch(std::string new_next_batch); std::string get_next_batch(); void clear_sync_cache_for_new_sync(); + std::shared_ptr<UserInfo> get_user_by_id(RoomData *room, const std::string &user_id); DownloadResult download_json(rapidjson::Document &result, const std::string &url, std::vector<CommandArg> additional_args, bool use_browser_useragent = false, std::string *err_msg = nullptr) const; private: std::vector<std::unique_ptr<RoomData>> rooms; |