summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-02-02 13:30:47 +0530
committerJedi18 <targetakhil@gmail.com>2021-02-02 13:30:47 +0530
commitd535cc5e759757fc71751df7d89131cdf2cd71d2 (patch)
treebeb30cb76bc98e699bbd9349ca5e738035cc8fff /src/timeline
parentupdate room and global avatar through user profile (diff)
downloadnheko-d535cc5e759757fc71751df7d89131cdf2cd71d2.tar.xz
add error message and update avatars on avatar change in timeline and user profile dialog
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineModel.cpp5
1 files changed, 4 insertions, 1 deletions
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