Fix bug when timeline is empty
This commit is contained in:
parent
b2eaf0f155
commit
7dc8648fec
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue