summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-04-30 15:33:17 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-04-30 15:33:17 +0200
commit986b561c344e7f500418e37ecd03b36c8011bcf6 (patch)
treead52e9647894ea553c9b697e3dfdddf7816740ac /src/timeline/TimelineModel.cpp
parentUpdate mtxclient to use new login parameters (diff)
downloadnheko-986b561c344e7f500418e37ecd03b36c8011bcf6.tar.xz
Fix crash when you have no rooms and open the profile as well as not rendering rooms without groups
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineModel.cpp6
1 files changed, 3 insertions, 3 deletions
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