Update libqmatrixclient && fix broken avatar && fix broken image provider.
This commit is contained in:
@@ -68,7 +68,9 @@ QVariant UserListModel::data(const QModelIndex& index, int role) const {
|
||||
return user->displayname(m_currentRoom);
|
||||
}
|
||||
if (role == AvatarRole) {
|
||||
return user->avatarUrl(m_currentRoom);
|
||||
if (!user->avatarUrl(m_currentRoom).isEmpty())
|
||||
return user->avatar(32, m_currentRoom);
|
||||
return QImage();
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
@@ -110,7 +112,7 @@ void UserListModel::refresh(QMatrixClient::User* user, QVector<int> roles) {
|
||||
|
||||
void UserListModel::avatarChanged(QMatrixClient::User* user,
|
||||
const QMatrixClient::Room* context) {
|
||||
if (context == m_currentRoom) refresh(user, {Qt::DecorationRole});
|
||||
if (context == m_currentRoom) refresh(user, {AvatarRole});
|
||||
}
|
||||
|
||||
int UserListModel::findUserPos(User* user) const {
|
||||
|
||||
Reference in New Issue
Block a user