Appease the tests
This commit is contained in:
parent
eff97e6c20
commit
5083811deb
1 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,9 @@ export class BreadcrumbsStore extends AsyncStoreWithClient<IState> {
|
||||||
// waiting for a room join to complete.
|
// waiting for a room join to complete.
|
||||||
this.waitingRooms.push({roomId: payload.room_id, addedTs: Date.now()});
|
this.waitingRooms.push({roomId: payload.room_id, addedTs: Date.now()});
|
||||||
} else {
|
} else {
|
||||||
await this.appendRoom(this.matrixClient.getRoom(payload.room_id));
|
// The tests might not result in a valid room object.
|
||||||
|
const room = this.matrixClient.getRoom(payload.room_id);
|
||||||
|
if (room) await this.appendRoom(room);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue