invisible-college / tawk.space

Social video chats
https://tawk.space
Apache License 2.0
14 stars 1 forks source link

Turning off video also disables audio #26

Closed karth295 closed 7 years ago

karth295 commented 7 years ago

The issue is that the client doesn't render a audio or video tag if the person doesn't have video. The logic of dom.PERSON looks something like this:

if not person.hasVideo:
  DIV
    name
    if person.hasAudio
      '(Audio-only)'
    else
      '(Muted)'
else:
  VIDEO

We should just have a video tag in all cases, and if the person doesn't have video, display the message.