Changed edit method from double clicking to an edit button

This commit is contained in:
Jedi18 2021-01-28 23:35:02 +05:30
parent 87490c29cd
commit b3f29f592b
5 changed files with 41 additions and 12 deletions

View file

@ -12,12 +12,14 @@
UserProfile::UserProfile(QString roomid,
QString userid,
TimelineViewManager *manager_,
TimelineModel *parent)
TimelineModel *parent,
QString globalUsername)
: QObject(parent)
, roomid_(roomid)
, userid_(userid)
, manager(manager_)
, model(parent)
, globalUsername(globalUsername)
{
fetchDeviceList(this->userid_);
@ -98,7 +100,7 @@ UserProfile::userid()
QString
UserProfile::displayName()
{
return cache::displayName(roomid_, userid_);
return globalUserProfile() ? globalUsername : cache::displayName(roomid_, userid_);
}
QString