Skip to content

[FIX] Remove Livechat guest data was removing more rooms than expected#14509

Merged
rodrigok merged 3 commits intodevelopfrom
livechat-fix-remove-guest-data
May 15, 2019
Merged

[FIX] Remove Livechat guest data was removing more rooms than expected#14509
rodrigok merged 3 commits intodevelopfrom
livechat-fix-remove-guest-data

Conversation

@renatobecker-zz
Copy link
Copy Markdown

@renatobecker-zz renatobecker-zz commented May 15, 2019

Closes #14506.

There was an issue when removing Livechat guest data. The method to find the guest wasn't returning an object, so the token property was getting null.
The big problem was that by passing null to Rooms.findByVisitorToken method, all rooms were returned instead of return nothing.

Other enhancements have also been added, such as adding visitor data to subscriptions. This data was missing while removing subscriptions related to the visitor.

@rodrigok rodrigok changed the title [FIX] Remove Livechat guest data [FIX] Remove Livechat guest data was removing more rooms than expected May 15, 2019
@rodrigok rodrigok merged commit 5898145 into develop May 15, 2019
@rodrigok rodrigok deleted the livechat-fix-remove-guest-data branch May 15, 2019 21:30
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Livechat feature deletes all conversations/rooms for all users

4 participants