Skip to content

Commit 06f4fd1

Browse files
authored
fix: getMissingEvents being called without default values (#307)
1 parent c3605da commit 06f4fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/federation-sdk/src/services/event.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,8 @@ export class EventService {
490490
roomId: string,
491491
earliestEventsId: EventID[],
492492
latestEventsId: EventID[],
493-
limit: number,
494-
minDepth: number,
493+
limit = 10,
494+
minDepth = 0,
495495
): Promise<{ events: Pdu[] }> {
496496
const latestEventsData = await this.eventRepository
497497
.findEventsByIdsWithDepth(roomId, latestEventsId)

0 commit comments

Comments
 (0)