diff --git a/src/components/views/elements/RoomName.tsx b/src/components/views/elements/RoomName.tsx
index d7c1859690..4736ac8416 100644
--- a/src/components/views/elements/RoomName.tsx
+++ b/src/components/views/elements/RoomName.tsx
@@ -34,6 +34,9 @@ export const RoomName = ({ room, children, maxLength }: IProps): JSX.Element =>
const { isTokenGatedRoom, isCommunityRoom } = useVerifiedRoom(room);
const roomUsers: string[] = useMemo(() => {
+ if ((room as Room).getJoinedMemberCount?.() > 2 || (room as IPublicRoomsChunkRoom).num_joined_members > 2) {
+ return [];
+ }
return (
(room as Room)
?.getMembers?.()
@@ -55,7 +58,9 @@ export const RoomName = ({ room, children, maxLength }: IProps): JSX.Element =>
{isCommunityRoom && }
{isTokenGatedRoom && }
{truncatedRoomName}
- {roomUsers?.length && }
+ {roomUsers?.length && !isTokenGatedRoom && !isCommunityRoom && (
+
+ )}
),
[truncatedRoomName, isCommunityRoom, isTokenGatedRoom, roomUsers],