forked from mystiq/hydrogen-web
Stop passing room to tiles in tests
This commit is contained in:
parent
f8dae8e20c
commit
053c94b60e
2 changed files with 3 additions and 3 deletions
|
@ -222,7 +222,7 @@ export function tests() {
|
||||||
};
|
};
|
||||||
const tiles = new MappedList(timeline.entries, entry => {
|
const tiles = new MappedList(timeline.entries, entry => {
|
||||||
if (entry.eventType === "m.room.message") {
|
if (entry.eventType === "m.room.message") {
|
||||||
return new BaseMessageTile({entry, room, timeline, platform: {logger}});
|
return new BaseMessageTile({entry, roomVM: {room}, timeline, platform: {logger}});
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}, (tile, params, entry) => tile?.updateEntry(entry, params));
|
}, (tile, params, entry) => tile?.updateEntry(entry, params));
|
||||||
|
|
|
@ -91,7 +91,7 @@ export function tests() {
|
||||||
tile.updateEntry(newEntry);
|
tile.updateEntry(newEntry);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const tile = new GapTile({entry: new FragmentBoundaryEntry(fragment, true), room});
|
const tile = new GapTile({entry: new FragmentBoundaryEntry(fragment, true), roomVM: {room}});
|
||||||
await tile.fill();
|
await tile.fill();
|
||||||
await tile.fill();
|
await tile.fill();
|
||||||
await tile.fill();
|
await tile.fill();
|
||||||
|
|
Loading…
Reference in a new issue