-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[IMPROVE] Replace livechat:pagesvisited publication by REST #15629
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
Conversation
|
|
||
| if (currentData && currentData.rid) { | ||
| this.pageVisited = this.subscribe('livechat:visitorPageVisited', { rid: currentData.rid }); | ||
| const { pages } = await APIClient.v1.get(`livechat/visitors.pagesVisited?roomId=${ currentData.rid }`); |
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.
We need to use pagination here, otherwise, only the first fetch will be displayed.
renatobecker-zz
left a comment
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.
There is no way to get more data after the first fetch.
|
@MarcosSpessatto this PR is not passing through the tests, can you please fix it? |
No description provided.