Merge pull request #6067 from matrix-org/t3chguy/spaces-0-subrooms

Show subspace rooms count even if it is 0 for consistency
This commit is contained in:
Michael Telatynski 2021-05-19 15:41:30 +01:00 committed by GitHub
commit b252005778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ const Tile: React.FC<ITileProps> = ({
}
let description = _t("%(count)s members", { count: room.num_joined_members });
if (numChildRooms) {
if (numChildRooms !== undefined) {
description += " · " + _t("%(count)s rooms", { count: numChildRooms });
}
if (room.topic) {