Countless errors after logout if a page with inbox or messages thread keeps open

Created on 27 January 2025, about 1 month 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.
This happens:

  • get_new_messages: continues to be called countless times and errors being shown to the user and being logged.
  • get_new_inblox_threads: continues to be called countless times and errors being shown to the user and being logged.
  • get_new_unread_thread_count (or get_new_unread_message_count depending on the configuration): is called one time and stops.

To have so many errors being generated is a problem, the user will see countless errors and it will overflow the error logs.

Proposed resolution

On the frontside we can change the javascript code to not repeat calls after an error.

On the backend we can provide an event for requests that will check if it is related with Private messages and if there is no session, in that case it redirects to , stopping the repetitive calls.

πŸ“Œ Task
Status

Needs work

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