Skip to content

Commit

Permalink
Fix broken room syncing
Browse files Browse the repository at this point in the history
I swear I pushed a commit like this before. That's weird.
  • Loading branch information
diamondburned committed Apr 26, 2023
1 parent 76a6c50 commit 7b76cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/api/v0/sync/+server.ts
Expand Up @@ -73,7 +73,8 @@ export async function GET(ev: sveltekit.ServerLoadEvent): Promise<Response> {

joinedRoomsQuery.forEach((r) => {
events[r.id] = eventsQuery
.filter((e) => !!e.id) // no event for the current room
.filter((e) => e.id) // no event for the current room
.filter((e) => e.roomID === r.id) // only events for the current room
.map((e) =>
db.convertEvent(e, {
id: e.authorID,
Expand Down

0 comments on commit 7b76cda

Please sign in to comment.