From 803fe48a6a9e9101ffd7ff2f2aeefe3c39334dad Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 22 Dec 2022 18:35:47 +0100 Subject: Matrix: slightly optimize set user info --- plugins/Matrix.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index ccbd8c0..7c2103c 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -563,10 +563,13 @@ namespace QuickMedia { bool messages_tab_visible = false; 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 user_body_item_by_user_id; }; class MatrixRoomDirectoryPage : public Page { -- cgit v1.2.3