RocketChat / RocketChat/Rocket.Chat

Pre-registration form on LiveChat: "START CHAT" button does not respond to user action.

Open
#12,709 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

subj: livechat
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

You can configure a (pre-)registration form to display when LiveChat opens. We have it configured with both name and email address being asked. This is an effort to try us help loosing LiveChat contact requests.

The registration form doesn't display allows in the browser, that might be related whether there is some state present or not on a previous session. It pops up reliably when using anonymous mode.

However, when you entering both non-empty and valid name such as John Doe and john.doe@acme.com, the Start Chat button is the expected next interaction.

Pressing it doesn't trigger any change. The Console in Chrome doesn't display any javascript or network errors.

After some time (30 seconds or so), the chat is always replaced by the actual chat window.

This chat window also displays after a similar time interval when you don't enter any input.

The name and email address are used by LiveChat for the duration of the session.

Only weird thing is that a request on wss://rocketchat.ACME.com/sockjs/609/xntqdl4t/websocket remains unanswered in status "101 switching protocols"

Steps to reproduce:
  1. Activate pre-registration form.
  2. Open website with livechat in anonymous mode.
Expected behavior:

Click on "Start chat" opens window with the user data filled out.

Actual behavior:

See description.

Server Setup Information:
  • Version of Rocket.Chat Server: 0.71.1
  • Operating System: Linux server, Windows client, Chrome latest production in anonymous mode for test
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ?
  • NodeJS Version: ?
  • MongoDB Version: ?
Relevant logs:

None; all happens in the browser.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the LiveChat pre-registration form entry point and reproduce the issue in anonymous mode using Rocket.Chat 0.71.1. Inspect the browser console, network activity, and the reported SockJS websocket while clicking Start Chat. Done means the button opens the chat window with the submitted name and email instead of waiting for the automatic transition.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.