Bump dependencies to libQuotient 0.7 (master)
This commit is contained in:
@@ -38,7 +38,7 @@ else()
|
||||
find_package(KF5DBusAddons ${KF5_MIN_VERSION} REQUIRED)
|
||||
endif()
|
||||
|
||||
find_package(Quotient 0.6)
|
||||
find_package(Quotient 0.7)
|
||||
set_package_properties(Quotient PROPERTIES
|
||||
TYPE REQUIRED
|
||||
DESCRIPTION "Qt wrapper arround Matrix API"
|
||||
|
||||
@@ -372,7 +372,7 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
|
||||
}
|
||||
if (e.avatarUrl().isEmpty()) {
|
||||
text += i18n("cleared their avatar");
|
||||
} else if (e.prevContent()->avatarUrl.isEmpty()) {
|
||||
} else if (e.prevContent()->avatarUrl) {
|
||||
text += i18n("set an avatar");
|
||||
} else {
|
||||
text += i18n("updated their avatar");
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user