From 43816e3f9f0eb39ff7a93897a35ec2f82fe59292 Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Thu, 6 Jul 2023 16:33:10 +0200 Subject: [PATCH] Use RoomPinnedEventsEvent instead of the old name --- Quotient/room.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Quotient/room.cpp b/Quotient/room.cpp index 2708420e2..4661eeb7a 100644 --- a/Quotient/room.cpp +++ b/Quotient/room.cpp @@ -617,7 +617,7 @@ QString Room::canonicalAlias() const QString Room::displayName() const { return d->displayname; } QStringList Room::pinnedEventIds() const { - return currentState().queryOr(&RoomPinnedEvent::pinnedEvents, QStringList()); + return currentState().content().value; } QVector Quotient::Room::pinnedEvents() const @@ -2327,7 +2327,7 @@ void Room::setCanonicalAlias(const QString& newAlias) void Room::setPinnedEvents(const QStringList& events) { - setState(events); + setState(events); } void Room::setLocalAliases(const QStringList& aliases) { @@ -3185,7 +3185,7 @@ Room::Change Room::Private::processStateEvent(const RoomEvent& curEvent, connection->updateRoomAliases(id, previousAltAliases, newAliases); return Change::RoomNames; }, - [this](const RoomPinnedEvent&) { + [this](const RoomPinnedEventsEvent&) { emit q->pinnedEventsChanged(); return Change::Other; },