summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-01-27 11:03:08 +0530
committerJedi18 <targetakhil@gmail.com>2021-01-27 11:03:08 +0530
commit5e3f5136557b83ee964d6c0cfa4fed422330728d (patch)
tree1b94d5d41571f83ffbaecff2a8dffda42ccc0b91 /src/timeline/TimelineModel.cpp
parentMerge pull request #419 from LorenDB/master (diff)
downloadnheko-5e3f5136557b83ee964d6c0cfa4fed422330728d.tar.xz
update room specific username from userprofile
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 4346b0b2..79cf5184 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -799,9 +799,9 @@ TimelineModel::viewDecryptedRawMessage(QString id) const
 }
 
 void
-TimelineModel::openUserProfile(QString userid)
+TimelineModel::openUserProfile(QString userid, bool global)
 {
-        emit openProfile(new UserProfile(room_id_, userid, manager_, this));
+        emit openProfile(new UserProfile(global ? "" : room_id_, userid, manager_, this));
 }
 
 void