When a user is first registered, initiating a chat (always) fails on the first try and succeeds on refresh


We are observing an issue when a new user is added and initiates a chat, we get the following errors:

details: {method: 'joinRoom'}
error: "error-not-allowed"
errorType: "Meteor.Error"
isClientSafe: true
message: "Not allowed [error-not-allowed]"
reason: "Not allowed"
stack: "Error: Not allowed [error-not-allowed]\n    at M._livedata_result...

The issue is also shown in the input text box where the “Join” button appears on the left and disappears as soon as the user clicks enter and error is thrown.
Screenshot 2022-09-14 113711

After the issue occurs if the user refreshes the chat, then there is no issue and the user is allowed to send messages.

Server Setup Information

  • Version of Rocket.Chat Server: 4.6.0
  • Operating System: ubuntu 18
  • Deployment Method: kubernetes via helm chart
  • Number of Running Instances: 1
  • MongoDB Version: 5.0.9
  • Proxy: nginx
  • Firewalls involved: none

Any additional Information