Adapt to libQuotient API changes

This commit is contained in:
Tobias Fella
2021-08-10 17:09:21 +02:00
parent 9e4d0ddc9b
commit e91a4f79a5
5 changed files with 21 additions and 3 deletions

View File

@@ -126,8 +126,11 @@ QVariant UserDirectoryListModel::data(const QModelIndex &index, int role) const
if (avatarUrl.isEmpty()) {
return "";
}
#ifdef QUOTIENT_07
return avatarUrl.url().remove(0, 6);
#else
return avatarUrl.remove(0, 6);
#endif
}
if (role == UserIDRole) {
return user.userId;