You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
add comment
This commit is contained in:
@@ -103,6 +103,7 @@ const JoinRuleSettings = ({ room, promptUpgrade, onError, beforeChange, closeSet
|
|||||||
|
|
||||||
let description;
|
let description;
|
||||||
if (joinRule === JoinRule.Restricted && restrictedAllowRoomIds?.length) {
|
if (joinRule === JoinRule.Restricted && restrictedAllowRoomIds?.length) {
|
||||||
|
// only show the first 4 spaces we know about, so that the UI doesn't grow out of proportion there are lots.
|
||||||
const shownSpaces = restrictedAllowRoomIds
|
const shownSpaces = restrictedAllowRoomIds
|
||||||
.map(roomId => cli.getRoom(roomId))
|
.map(roomId => cli.getRoom(roomId))
|
||||||
.filter(room => room?.isSpaceRoom())
|
.filter(room => room?.isSpaceRoom())
|
||||||
|
|||||||
Reference in New Issue
Block a user