From 7dc8648fec6bc928131631780aa5b553bdf664bc Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 30 Nov 2021 15:19:33 +0000 Subject: [PATCH] Fix bug when timeline is empty --- src/matrix/Sync3.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/Sync3.ts b/src/matrix/Sync3.ts index 4ebea551..d6ae3407 100644 --- a/src/matrix/Sync3.ts +++ b/src/matrix/Sync3.ts @@ -284,10 +284,10 @@ export class Sync3 { const roomv2Response = { timeline: { - events: roomResponse.timeline, + events: roomResponse.timeline || [], }, state: { - events: roomResponse.required_state, + events: roomResponse.required_state || [], }, account_data: null, summary: null,