{capture assign='chatBoxRoomList'}
{foreach from=$boxRoomList item='room'}
{if $room->canSee() && (!$skipEmptyRooms|isset || !$skipEmptyRooms || !$room->getUsers()|empty)}
roomID === $activeRoomID} class="active"{/if}>
{if $room->canJoin()}
{else}
{/if}
{/if}
{/foreach}
{/capture}
{if $chatBoxRoomList|trim}
{else}
{/if}