Problem/Motivation
When we have a page with inbox, a thread of messages being displayed and notifications, these ajax calls are being made from time to time:
- get_new_messages
- get_new_inblox_threads
- get_new_unread_thread_count (or get_new_unread_message_count depending on the configuration)
Now on another tab of the browser, I logout and then I return to the previous tab.
Three errors will be generated with the message "Oops, something went wrong. Check your browser's developer console for more details.".
Proposed resolution
The goal is to avoid displaying repeated messages.
The message is not user friendly and should be improved or skipped.
One way to do this is to refresh the page.
Issue fork private_message-3504372
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dxvargas commentedComment #4
dxvargas commentedComment #5
dxvargas commentedI've created a MR but it needs to be checked because it has comes errors in the pipeline.
Comment #6
dxvargas commentedMR is green now. Asking for review...
Comment #7
claudiu.cristeaLet's keep the console.error() reporting. I see other packages, including some from Drupal Core, are also doing it.
Comment #9
claudiu.cristeaThank you!