summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-12 17:14:53 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-12 17:14:53 +0300
commit718562737cebf956dae219d1152240367ddf4aa3 (patch)
tree6552caf1eef9628e950875b6b40dff9414bcd996 /src/ChatPage.cc
parentUse less contrast on the sidebar (diff)
downloadnheko-718562737cebf956dae219d1152240367ddf4aa3.tar.xz
Don't use icons as room avatars
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index db911972..33f98af3 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -192,8 +192,7 @@ void ChatPage::updateTopBarAvatar(const QString &roomid, const QPixmap &img)
 	if (current_room_.id() != roomid)
 		return;
 
-	QIcon icon(img);
-	this->top_bar_->updateRoomAvatar(icon);
+	top_bar_->updateRoomAvatar(img.toImage());
 }
 
 void ChatPage::updateOwnProfileInfo(const QUrl &avatar_url, const QString &display_name)