RocketChat / RocketChat/Rocket.Chat

Omnichannel Departments and offline behaviour

Open
#19,062 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description:

When no Agents are online, an offline form is presented to the user to leave a message. However, if no Agents are online for a specific department, the chat is initialized without any problems but when sending a message a "no-agent-online" error is shown.

Steps to reproduce:
  1. Add an Agent to a Department "Test".
  2. Have the agent online.
  3. Register the User with the following code:
  RocketChat(function() {
    this.registerGuest({
      name: 'visitor Name',
      email: 'sample@rocket.chat',
      department: 'Another'
    });
  });
  1. Test the Livechat and type anything. An error should be thrown.
  2. Extra step: have the Agent go offline. You will see the offline form now.
Expected behavior:

If there are no online agents for the current department, the offline form (or whatever offline behaviour that was set) should be shown. It should be exactly the same as what happens when all agents are offline.

Actual behavior:

A "no-agent-online" error is shown in the chat widget.

Server Setup Information:
  • Version of Rocket.Chat Server: 3.6.2
  • Operating System: Ubuntu 20.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
Client Setup Information
  • Desktop App or Browser Version: Desktop
  • Operating System: Ubuntu 18.04

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

Reproduce the department-specific case using the registerGuest snippet and compare it with the all-agents-offline behavior in the livechat widget. The work is complete when a department with no online agents shows the configured offline behavior instead of a no-agent-online error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.