From d535cc5e759757fc71751df7d89131cdf2cd71d2 Mon Sep 17 00:00:00 2001 From: Jedi18 Date: Tue, 2 Feb 2021 13:30:47 +0530 Subject: add error message and update avatars on avatar change in timeline and user profile dialog --- src/timeline/TimelineModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 79cf5184..a4d551f5 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -801,7 +801,10 @@ TimelineModel::viewDecryptedRawMessage(QString id) const void TimelineModel::openUserProfile(QString userid, bool global) { - emit openProfile(new UserProfile(global ? "" : room_id_, userid, manager_, this)); + UserProfile *userProfile = new UserProfile(global ? "" : room_id_, userid, manager_, this); + connect( + this, &TimelineModel::roomAvatarUrlChanged, userProfile, &UserProfile::avatarUrlChanged); + emit openProfile(userProfile); } void -- cgit 1.5.1