Fix crash when you have no rooms and open the profile as well as not rendering rooms without groups
This commit is contained in:
parent
7431b51d27
commit
986b561c34
4 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue