RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.63k stars 10.64k forks source link

[bug]Miss the voice message mic icon. #22864

Open lijicheng168 opened 3 years ago

lijicheng168 commented 3 years ago

Description:

After testing, I found that the voice message icon still exists during the local installation, but when it is started in docker mode, the voice message icon is gone. Is it because I configured it incorrectly or a certain environment variable of docker was not passed into the app correctly? image image

Steps to reproduce:

  1. In chanel,there should be a mic icon for sending voice message.

Expected behavior:

  1. In chanel,there should be a mic icon for sending voice message.

Actual behavior:

Server Setup Information:

docker-compose.yml

services:
  rocketchat:
    image: registry.rocket.chat/rocketchat/rocket.chat:latest
    command: >
      bash -c
        "for i in `seq 1 30`; do
          node main.js &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 secs...\";
          sleep 5;
        done; (exit $$s)"
    restart: unless-stopped
    volumes:
      - ./uploads:/app/uploads
    environment:
      - PORT=8301
      - ROOT_URL=http://48.x.x.x:8301
      - MONGO_URL=mongodb://mongo:27017/rocketchat
      - MONGO_OPLOG_URL=mongodb://mongo:27017/local
      - MAIL_URL=smtp://smtp.email
#       - HTTP_PROXY=http://proxy.domain.com
#       - HTTPS_PROXY=http://proxy.domain.com
    depends_on:
      - mongo
    ports:
      - 8301:8301
    labels:
      - "traefik.backend=rocketchat"
      - "traefik.frontend.rule=Host: your.domain.tld"

Client Setup Information

Additional context

Relevant logs:

debdutdeb commented 3 years ago

Hi lijicheng168 👋🏼

I just checked this on 3.17.0, can't reproduce this. By default audio recording should be enabled. Are you sharing a mongodb database with another rc instance (like for example the one you're addressing as "local installation"?) where you previously disabled audio recording?

You can make sure it is enabled on startup, by passing this environment variable and value tuple to the container -

OVERWRITE_SETTING_Message_AudioRecorderEnabled=true

As a side note, I advice you not to use the latest tag. Use a specific version tag like registry.rocket.chat/rocketchat/rocket.chat:3.17.0

Thank you !

lijicheng168 commented 3 years ago

Hi lijicheng168 👋🏼

I just checked this on 3.17.0, can't reproduce this. By default audio recording should be enabled. Are you sharing a mongodb database with another rc instance (like for example the one you're addressing as "local installation"?) where you previously disabled audio recording?

You can make sure it is enabled on startup, by passing this environment variable and value tuple to the container -

OVERWRITE_SETTING_Message_AudioRecorderEnabled=true

As a side note, I advice you not to use the latest tag. Use a specific version tag like registry.rocket.chat/rocketchat/rocket.chat:3.17.0

Thank you !

Thank you for response! I have changed to use the registry.rocket.chat/rocketchat/rocket.chat:3.17.0. OVERWRITE_SETTING_Message_AudioRecorderEnabled=true is no work.

I have test that if I use localhost or 127.0.0.1 to access,there will show the icon,but if I use the REAL IP like 48.x.x.x:8300,there will not shown the icon. I still try the snap install,docker all have the same situation. Thank you!

Lucas-Simoes-SI commented 3 years ago

Hello .. I also have the same problem, I installed via Snap and since the first login the voice icon doesn't appear

debdutdeb commented 3 years ago

What happens when you enable audio messages? - Administration > Message > Audio Message

Can you simultaneously check the logs if something odd appears there or not?

Another thing you can try, is inspecting the send button. Look for a div with rc-message-box__audio-message class.

Do check the console as well for any clues.

lijicheng168 commented 3 years ago

I have enabled the Audio Message image No odd logs. image No rc-message-box__audio-message class. image Console log. image Thank you!

matheusvancoll commented 2 years ago

I'm also having the same problem, on localhost it works normally but running on some server the option simply a few