diff options
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 c498ec8..c7cb154 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -23,6 +23,7 @@ namespace QuickMedia { std::unordered_map<std::string, size_t> user_info_by_user_id; std::vector<UserInfo> user_info; std::vector<Message> messages; + std::string name; std::string prev_batch; bool initial_fetch_finished = false; }; @@ -58,6 +59,7 @@ namespace QuickMedia { PluginResult load_initial_room_data(const std::string &room_id, RoomData *room_data); void events_add_user_info(const Json::Value &events_json, RoomData *room_data); void events_add_messages(const Json::Value &events_json, RoomData *room_data, MessageDirection message_dir); + void events_set_room_name(const Json::Value &events_json, RoomData *room_data); private: std::unordered_map<std::string, std::unique_ptr<RoomData>> room_data_by_id; std::string user_id; |