Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Feature: Listen button #8

Open
Open
@OlegKunitsyn

Description

@OlegKunitsyn

For now all users that can join the audio stream are admins. I've extended userController by

    const role = users.length === 0 ? 'admin' : 'visitor'
    const user = {id,name,room,role};
...
    const role = usersInVoice.length === 0 ? 'admin' : 'visitor'
    const user = {id,name,room,role};

and replaced user:admin with user:user.role. In result, we have two roles of users.
Furthermore, visitors may get Listen button instead of admn's Join voice

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions