Skip to content
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: enhance infinite loading of chat when logged out - EXO-67681 (#678) #685

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

ahamdi
Copy link
Member

@ahamdi ahamdi commented Dec 6, 2023

When a user is logged out , the popup to force him reconnect does not show up and we have an infinite calls to the server to retrieve user status and his rooms. This commit fixes the check of the user disconnection that was checking cometd status which is wrong as the logout event is already using the cometd channel to dispatch the event to all pages. Besides, when the eXo platform server returns a 403 error for Rest calls, it is sure that the user is logged out, then we send an event to all components of the Chat app to notify and display the login popup.

When a user is logged out , the popup to force him reconnect does not show up and we have an infinite calls to the server to retrieve user status and his rooms.
This commit fixes the check of the user disconnection that was checking cometd status which is wrong as the logout event is already using the cometd channel to dispatch the event to all pages.
Besides, when the eXo platform server returns a 403 error for Rest calls, it is sure that the user is logged out, then we send an event to all components of the Chat app to notify and display the login popup.
Copy link

sonarqubecloud bot commented Dec 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@ahamdi ahamdi self-assigned this Dec 6, 2023
@Jihed525 Jihed525 merged commit 57e7e61 into develop Dec 7, 2023
8 of 9 checks passed
@Jihed525 Jihed525 deleted the Merge/EXO-67681 branch December 7, 2023 07:59
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.

2 participants