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
|