From 986b561c344e7f500418e37ecd03b36c8011bcf6 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 30 Apr 2021 15:33:17 +0200 Subject: Fix crash when you have no rooms and open the profile as well as not rendering rooms without groups --- src/timeline/TimelineModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 2f7bfdd2..c472ab33 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -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 -- cgit 1.5.1