Trouble with usernames
This commit is contained in:
parent
0aeaf50c92
commit
0ba3a8cd7f
2 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ AccordionItem {
|
|||
visible: true
|
||||
canEdit: true
|
||||
headerText: qsTr("Username", "user name of the logged-in profile - header")
|
||||
text: userInformation.username
|
||||
text: userInformation.usernames.editable_username
|
||||
width: parent.columnWidth
|
||||
headerLeftAligned: true
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ QVariant ContactsModel::data(const QModelIndex &index, int role) const
|
|||
case ContactRole::RoleDisplay: return requestedContact;
|
||||
case ContactRole::RoleTitle: return QString(requestedContact.value("first_name").toString() + " " + requestedContact.value("last_name").toString()).trimmed();
|
||||
case ContactRole::RoleUserId: return requestedContact.value("id");
|
||||
case ContactRole::RoleUsername: return requestedContact.value("username");
|
||||
case ContactRole::RoleUsername: return requestedContact.value("usernames").toMap().value("editable_username").toString();
|
||||
case ContactRole::RolePhotoSmall: return requestedContact.value("profile_photo").toMap().value("small");
|
||||
case ContactRole::RoleUserStatus: return requestedContact.value("status").toMap().value("@type");
|
||||
case ContactRole::RoleUserLastOnline: return requestedContact.value("status").toMap().value("was_online");
|
||||
|
|
Loading…
Reference in a new issue