diff options
author | Jedi18 <targetakhil@gmail.com> | 2021-01-29 11:55:24 +0530 |
---|---|---|
committer | Jedi18 <targetakhil@gmail.com> | 2021-01-29 11:55:24 +0530 |
commit | 9b5a287d14a18b1bef012a348dd77350fdb70ba3 (patch) | |
tree | 24ee09eb496c46a7b38b38a9921e6ff43ef975a7 /src/timeline | |
parent | fix linting 2 (diff) | |
download | nheko-9b5a287d14a18b1bef012a348dd77350fdb70ba3.tar.xz |
made requeste changes
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 73077508..79cf5184 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -801,11 +801,7 @@ TimelineModel::viewDecryptedRawMessage(QString id) const void TimelineModel::openUserProfile(QString userid, bool global) { - if (global) { - emit openProfile(new UserProfile("", utils::localUser(), manager_, this)); - } else { - emit openProfile(new UserProfile(room_id_, userid, manager_, this)); - } + emit openProfile(new UserProfile(global ? "" : room_id_, userid, manager_, this)); } void |