Improve UI after logout if a page with inbox or messages thread keeps open

Created on 4 February 2025, 2 months ago

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 redirect to the homepage if an ajax call gets an error.
Ideally a friendly message should be shown but to keep the simplicity (since this is an edge case) we may consider to just redirect (?).

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇵🇹Portugal dxvargas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024