summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-01-29 11:55:24 +0530
committerJedi18 <targetakhil@gmail.com>2021-01-29 11:55:24 +0530
commit9b5a287d14a18b1bef012a348dd77350fdb70ba3 (patch)
tree24ee09eb496c46a7b38b38a9921e6ff43ef975a7 /src/timeline
parentfix linting 2 (diff)
downloadnheko-9b5a287d14a18b1bef012a348dd77350fdb70ba3.tar.xz
made requeste changes
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineModel.cpp6
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