From 0028fdfe6c7485515b2535bb73b1d9075f9bf4fe Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 24 Apr 2018 14:13:05 +0300 Subject: Remove map from room_id to QPixmap from ChatPage The avatars are loaded from cache --- include/Cache.h | 3 +++ include/ChatPage.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/Cache.h b/include/Cache.h index 1faf0677..acad45e2 100644 --- a/include/Cache.h +++ b/include/Cache.h @@ -166,6 +166,9 @@ public: bool isFormatValid(); void setCurrentFormat(); + //! Retrieves the saved room avatar. + QImage getRoomAvatar(const QString &id); + //! Adds a user to the read list for the given event. //! //! There should be only one user id present in a receipt list per room. diff --git a/include/ChatPage.h b/include/ChatPage.h index d0be9ce1..c09675fb 100644 --- a/include/ChatPage.h +++ b/include/ChatPage.h @@ -168,9 +168,6 @@ private: QString current_room_; QString current_community_; - std::map roomAvatars_; - std::map community_avatars_; - UserInfoWidget *user_info_widget_; std::map> communities_; -- cgit 1.5.1