aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-21 04:15:39 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-21 04:15:39 +0200
commit7bf0f7107b72af01fea83a7343ce1c32e54865e9 (patch)
tree08adabdefd836cfd5b95be90b58224dc764fa43e /plugins
parent40e0f8f5d8c3e480f01a2d71b6a493247adcb77f (diff)
Add matrix room names
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp2
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;