Fix reply permalinks having undefined room ID's

This commit is contained in:
Eric Eastwood 2022-02-16 14:56:20 -06:00
parent d9af4b6b7c
commit 8160b6d928
1 changed files with 9 additions and 11 deletions

View File

@ -92,12 +92,18 @@ async function mountHydrogen() {
},
};
const room = {
name: roomData.name,
id: roomData.id,
avatarUrl: roomData.avatarUrl,
avatarColorId: roomData.id,
mediaRepository: mediaRepository,
};
const tilesCreator = makeTilesCreator({
platform,
roomVM: {
room: {
mediaRepository,
},
room,
},
timeline,
urlCreator,
@ -161,14 +167,6 @@ async function mountHydrogen() {
// },
// };
const room = {
name: roomData.name,
id: roomData.id,
avatarUrl: roomData.avatarUrl,
avatarColorId: roomData.id,
mediaRepository: mediaRepository,
};
const roomViewModel = new RoomViewModel({
room,
ownUserId: 'xxx',