Fix bug when timeline is empty

This commit is contained in:
Kegan Dougal 2021-11-30 15:19:33 +00:00
parent b2eaf0f155
commit 7dc8648fec

View file

@ -284,10 +284,10 @@ export class Sync3 {
const roomv2Response = { const roomv2Response = {
timeline: { timeline: {
events: roomResponse.timeline, events: roomResponse.timeline || [],
}, },
state: { state: {
events: roomResponse.required_state, events: roomResponse.required_state || [],
}, },
account_data: null, account_data: null,
summary: null, summary: null,