diff options
Diffstat (limited to 'src/UsersModel.cpp')
-rw-r--r-- | src/UsersModel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/UsersModel.cpp b/src/UsersModel.cpp index aeabf467..4be37503 100644 --- a/src/UsersModel.cpp +++ b/src/UsersModel.cpp @@ -23,6 +23,7 @@ UsersModel::roleNames() const {CompletionModel::SearchRole2, "searchRole2"}, {Roles::DisplayName, "displayName"}, {Roles::AvatarUrl, "avatarUrl"}, + {Roles::UserID, "userid"}, }; } @@ -44,6 +45,8 @@ UsersModel::data(const QModelIndex &index, int role) const case Roles::AvatarUrl: return cache::avatarUrl(QString::fromStdString(room_id), QString::fromStdString(roomMembers_[index.row()])); + case Roles::UserID: + return userids[index.row()]; } } return {}; |