Fix crash when you have no rooms and open the profile as well as not rendering rooms without groups

This commit is contained in:
Nicolas Werner 2021-04-30 15:33:17 +02:00
parent 7431b51d27
commit 986b561c34
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
4 changed files with 9 additions and 6 deletions

View file

@ -854,12 +854,12 @@ TimelineModel::viewDecryptedRawMessage(QString id) const
}
void
TimelineModel::openUserProfile(QString userid, bool global)
TimelineModel::openUserProfile(QString userid)
{
UserProfile *userProfile = new UserProfile(global ? "" : room_id_, userid, manager_, this);
UserProfile *userProfile = new UserProfile(room_id_, userid, manager_, this);
connect(
this, &TimelineModel::roomAvatarUrlChanged, userProfile, &UserProfile::updateAvatarUrl);
emit openProfile(userProfile);
emit manager_->openProfile(userProfile);
}
void