add error message and update avatars on avatar change in timeline and user profile dialog

This commit is contained in:
Jedi18 2021-02-02 13:30:47 +05:30
parent c3e02240bf
commit d535cc5e75
5 changed files with 48 additions and 4 deletions

View file

@ -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