aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-28 18:46:15 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-28 18:46:15 +0200
commit3b0d367c6b70f88e5fa01a1813f9487c37401050 (patch)
treed5998b88d8835de5cc159e7e105c25576e7320d6 /plugins
parent7d0d8a1bf0ffbaf073303efc7d7bfc58177277a6 (diff)
Update emoji, add room topic to matrix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp7
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);