diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Matrix.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index fb52744..9bfee65 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -123,6 +123,8 @@ namespace QuickMedia { void set_name(const std::string &new_name); // TODO: Remove this std::string get_name(); + void set_topic(const std::string &new_topic); + std::string get_topic(); bool has_avatar_url(); void set_avatar_url(const std::string &new_avatar_url); @@ -162,6 +164,7 @@ namespace QuickMedia { std::recursive_mutex room_mutex; std::string name; + std::string topic; std::string avatar_url; std::string prev_batch; @@ -554,8 +557,8 @@ namespace QuickMedia { void events_set_user_read_marker(const rapidjson::Value &events_json, RoomData *room_data, std::shared_ptr<UserInfo> &me); // Returns the number of messages added size_t events_add_messages(const rapidjson::Value &events_json, RoomData *room_data, MessageDirection message_dir, bool has_unread_notifications); - void events_set_room_name(const rapidjson::Value &events_json, RoomData *room_data); - void set_room_name_to_users_if_empty(RoomData *room, const std::string &room_creator_user_id); + void events_set_room_info(const rapidjson::Value &events_json, RoomData *room_data); + void set_room_info_to_users_if_empty(RoomData *room, const std::string &room_creator_user_id); void events_add_pinned_events(const rapidjson::Value &events_json, RoomData *room_data); void events_add_room_to_tags(const rapidjson::Value &events_json, RoomData *room_data); void add_invites(const rapidjson::Value &invite_json); |