RocketChat / RocketChat/Rocket.Chat

Email Inboxes - Email conversations are not assigned to the configured department when the contact's email is registered with Rocket.Chat

Open
#21,334 0 comments 0 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 a contact initiates an email conversation and the contact's email exists in Rocket.Chat, it is assigned to the department of their last conversation, not the department configured in Email Inboxes. The conversation is expected to be assigned to the department configured in the Email Inboxes

Steps to reproduce:

  1. Set up an email in the Email Inboxes. Add in the department field, example : 'Prueba Correo'
  2. Start a conversation from the Livechat Widget and close the conversation. Select a department other than 'Prueba Correo'
  3. Start a conversation by mail, using the email of the contact who signed up for the conversation generated from the Livechat widget.

Expected behavior:

I hope the email conversation is assigned to the 'Prueba Correo' department

image
image

Actual behavior:

It is currently assigned to a department other than 'Prueba Correo'
image

Server Setup Information:

  • Version of Rocket.Chat Server: 3.11.1
  • Operating System: Ubuntu
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: true
  • NodeJS Version: v12.18.4
  • MongoDB Version: v4.0.13

Client Setup Information

  • Desktop App or Browser Version: Versión 88.0.4324.150
  • Operating System: Windows 10

Additional context

All conversations coming from Email Inboxes are expected to be assigned to the 'Prueba Correo' department, whether or not the contact's email is registered in Roket.Chat

Relevant logs:

N/A

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 by reproducing the flow through Email Inboxes and the Livechat Widget: configure a department, close a prior conversation under another department, then email the same contact. Trace where the email conversation's department is selected. Done means email conversations use the Email Inboxes department regardless of the contact's previous conversation.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.