Bump dependencies to libQuotient 0.7 (master)

This commit is contained in:
Carl Schwan
2020-12-12 15:39:29 +01:00
parent a18ecdddb2
commit d646962ea1
3 changed files with 8 additions and 4 deletions

View File

@@ -50,7 +50,9 @@ void UserListModel::setRoom(Quotient::Room *room)
std::sort(m_users.begin(), m_users.end(), room->memberSorter());
}
for (User *user : qAsConst(m_users)) {
connect(user, &User::avatarChanged, this, &UserListModel::avatarChanged);
connect(user, &User::defaultAvatarChanged, this, [this, &user]() {
avatarChanged(user, m_currentRoom);
});
}
connect(m_currentRoom->connection(), &Connection::loggedOut, this, [=] {
setRoom(nullptr);
@@ -149,7 +151,9 @@ void UserListModel::userAdded(Quotient::User *user)
beginInsertRows(QModelIndex(), pos, pos);
m_users.insert(pos, user);
endInsertRows();
connect(user, &Quotient::User::avatarChanged, this, &UserListModel::avatarChanged);
connect(user, &User::defaultAvatarChanged, this, [this, &user]() {
avatarChanged(user, m_currentRoom);
});
}
void UserListModel::userRemoved(Quotient::User *user)