Skip to content

[FIX] Ancestral departments were not updated when an Omnichannel room is forwarded to another department#16958

Merged
rodrigok merged 5 commits intodevelopfrom
omnichannel/add-new-omnichannel-department-forwarding-callback
Mar 21, 2020
Merged

[FIX] Ancestral departments were not updated when an Omnichannel room is forwarded to another department#16958
rodrigok merged 5 commits intodevelopfrom
omnichannel/add-new-omnichannel-department-forwarding-callback

Conversation

@renatobecker
Copy link
Contributor

Related to #16779

Currently, the ancestral departments are stored in the room only when the room is created, so when an Omnichannel room is forwarded from a department to another, we need to update the ancestral departments of the room based on the new department.

@renatobecker renatobecker added this to the 3.1.0 milestone Mar 20, 2020
}

LivechatRooms.updateDepartmentAncestorsById(room._id, ancestors);
return LivechatRooms.findOneById(rid);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callbacks should return the same input param, because the return will be passed to the next callback.

@sampaiodiego sampaiodiego force-pushed the omnichannel/add-new-omnichannel-department-forwarding-callback branch from 685557b to 22b0aa8 Compare March 21, 2020 02:02
@rodrigok rodrigok merged commit 06e27b8 into develop Mar 21, 2020
@rodrigok rodrigok deleted the omnichannel/add-new-omnichannel-department-forwarding-callback branch March 21, 2020 02:52
ggazzo added a commit that referenced this pull request Mar 22, 2020
… into dm/multiple-users

* 'dm/multiple-users' of github.com:RocketChat/Rocket.Chat:
  fix cas username sync (#16942)
  [IMPROVE] Update ancestral departments when an Omnichannel room is forwarded to another department (#16958)
@rodrigok rodrigok changed the title [IMPROVE] Update ancestral departments when an Omnichannel room is forwarded to another department [FIX] Ancestral departments were not updated when an Omnichannel room is forwarded to another department Mar 26, 2020
@sampaiodiego sampaiodiego mentioned this pull request Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments