Fix reply permalinks having undefined room ID's
This commit is contained in:
parent
d9af4b6b7c
commit
8160b6d928
|
@ -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({
|
const tilesCreator = makeTilesCreator({
|
||||||
platform,
|
platform,
|
||||||
roomVM: {
|
roomVM: {
|
||||||
room: {
|
room,
|
||||||
mediaRepository,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
timeline,
|
timeline,
|
||||||
urlCreator,
|
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({
|
const roomViewModel = new RoomViewModel({
|
||||||
room,
|
room,
|
||||||
ownUserId: 'xxx',
|
ownUserId: 'xxx',
|
||||||
|
|
Loading…
Reference in New Issue