-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Livechat): Popout mode not working in cross domains #33944
base: develop
Are you sure you want to change the base?
Conversation
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: a07a40c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #33944 +/- ##
========================================
Coverage 75.19% 75.19%
========================================
Files 495 495
Lines 21601 21601
Branches 5362 5362
========================================
Hits 16242 16242
Misses 4717 4717
Partials 642 642
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a changeset?
Proposed changes (including videos or screenshots)
Fixes issue that caused the
popout
mode of livechat to not work in cross domains situations, such as the rocketchat server being in one domain an the website that embedded livechat being in another. Operations between different domains are restricted so the localstorage never managed to actually sync between the two domains, creating different sessions when opening the popover viewI've changed the approach to sync the popout window with the server when opened using the livechat api call
setToken
in the popout window. After the popout is closed, when opening the normal widget again, it will sync with the server too, to get all the info of the popout session (new messages, dep/agent changes, etc...)Issue(s)
SUP-462