made requeste changes

This commit is contained in:
Jedi18 2021-01-29 11:55:24 +05:30
parent 195bb0499b
commit 9b5a287d14
5 changed files with 13 additions and 17 deletions

View file

@ -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