Skip to content

Commit

Permalink
Use RoomPinnedEventsEvent instead of the old name
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Jul 6, 2023
1 parent 5b39073 commit 43816e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Quotient/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<RoomPinnedEventsEvent>().value;
}

QVector<const Quotient::RoomEvent*> Quotient::Room::pinnedEvents() const
Expand Down Expand Up @@ -2327,7 +2327,7 @@ void Room::setCanonicalAlias(const QString& newAlias)

void Room::setPinnedEvents(const QStringList& events)
{
setState<RoomPinnedEvent>(events);
setState<RoomPinnedEventsEvent>(events);
}
void Room::setLocalAliases(const QStringList& aliases)
{
Expand Down Expand Up @@ -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;
},
Expand Down

0 comments on commit 43816e3

Please sign in to comment.