aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-12-22 18:35:47 +0100
committerdec05eba <dec05eba@protonmail.com>2022-12-22 18:35:47 +0100
commit803fe48a6a9e9101ffd7ff2f2aeefe3c39334dad (patch)
tree891413db3abb4757ccc1723145ae2f1fa8ae083e /plugins
parent5ec3625ca0802bff75b0e989d22f682cc2049abb (diff)
Matrix: slightly optimize set user info
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index ccbd8c0..7c2103c 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -564,9 +564,12 @@ namespace QuickMedia {
const std::string jump_to_event_id;
private:
+ void add_user_to_body_by_user_info(const MatrixEventUserInfo &user_info);
+ private:
RoomData *current_room = nullptr;
Body *users_body = nullptr;
MatrixRoomInfoUpdateCallback room_info_update_callback;
+ std::unordered_map<std::string, BodyItem*> user_body_item_by_user_id;
};
class MatrixRoomDirectoryPage : public Page {