Skip to content

Commit

Permalink
Merge #680(kitsune): Use RoomPinnedEventsEvent instead of the old name
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal authored Jul 7, 2023
2 parents 5b39073 + 43816e3 commit 0e10076
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 0e10076

Please sign in to comment.