Voice Call button

Description

Server Setup Information

  • Version of Rocket.Chat Server: 7.13.3
  • Operating System: Ubuntu 22
  • Deployment Method: Starter
  • NodeJS Version: 22.16.0
  • MongoDB Version: 7.0.28
  • Proxy: no
  • Firewalls involved: no

Any additional Information

voice call button

How is it possible to remove the voice call button in direct messages ? It is not available channels and teams. We don’t use voice calls, so we don’t need it.

You have already asked about this in another thread. You just make more work for people.

Did you even bother trying the solution?

I suggest you do so.

Of course I tried it out. Otherwise I wouldn’t ask again.
And somebody else asked for server version 7.13.

So did you actually have a look WHY it didn’t work? You haven’t made the slightest effort to help yourself. Why should anyone help you?

I had a look and I am clueless and useless with CSS but it only took me 5 minutes to figure it out.

They removed this at some point:

data-qa-id=“ToolBoxAction-phone” data-toolbox=“1”

So this code will never find the css

button[data-toolbox="1"][data-qa-id="ToolBoxAction-phone"] {
display: none!important;
}

So with a quick browser inspector we can see it now says:

<button type=“button” title=“Voice call Some User”

So all you need to do is find some CSS that searches for “Title” and wording that starts with “Voice call”

Second link on a search reveals this:

And so you can do something vaguely like this:

button[title^=“Voice call”]{
display: none !important;
}

Probably needs refinement but seems to work.

A lesson in open source is to start by trying to help yourself.

I was in two minds whether to actually post a solution because I don’t have much time for people who just want answers on a plate and make no attempt to better themselves or learn.

If you had posted your effort at some CSS you would increase your chances of someone helping.

I happen to be in a generous mood today so posted it, mainly for others. It is open source. My way of giving back to a community.

It took me longer to upgrade a test server to check this. It took me longer to type this post.

With minimum effort you could have done this yourself.

My suggestion is spend some time reading, and helping others in return.

If you have refinements please post them accordingly.