mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Allow details to be child of rooms
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
439910f6ca
commit
98d8d44695
@ -35,7 +35,7 @@ function allowsChild(parent, child) {
|
|||||||
return type === "room" || type === "rooms" || type === "settings";
|
return type === "room" || type === "rooms" || type === "settings";
|
||||||
case "rooms":
|
case "rooms":
|
||||||
// downside of the approach: both of these will control which tile is selected
|
// downside of the approach: both of these will control which tile is selected
|
||||||
return type === "room" || type === "empty-grid-tile";
|
return type === "room" || type === "empty-grid-tile" || type === "details";
|
||||||
case "room":
|
case "room":
|
||||||
return type === "lightbox" || type === "details";
|
return type === "lightbox" || type === "details";
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user