Skip to content

Conversation

@marien-probesys
Copy link
Member

@marien-probesys marien-probesys commented Dec 19, 2025

Related issue(s)

N/A

How to test manually

N/A

Reviewer checklist

  • Code is manually tested
  • Interface works on both mobiles and big screens
  • Interface works on both Firefox and Chrome
  • Tests are up to date
  • Documentation is up to date
  • Pull request has been reviewed and approved

An issue happened when there was a high number of untreated messages
associated to users without the "bypass human authentication" option.
Indeed, the `getSearchQuery()` could return 1000 messages concerning
these users, while the 1001th message (not returned) could have
concerned a user with the "bypass" option enabled.

Now, we iterate on the users with the option enabled and we get their
untreated messages so we are sure to always load messages that need to
be loaded.
Two problems happened. First, the `Accept-Language` header was ignored
when the user wasn't logged-in. It means that the French locale was
always used. The refactor of the LocaleSubscriber fixes this.

The second problem was that once the session expired, but that the user
was logged in again through the "remember me" cookie, the locale wasn't
set anymore. This is why I introduce a UserLocaleSubscriber which is
triggered on "interactive login", meaning it is called both on normal
login, and on "remember me" login.
@marien-probesys marien-probesys merged commit c4157b1 into main Dec 19, 2025
11 checks passed
@marien-probesys marien-probesys deleted the chore/sync-2.4 branch December 19, 2025 16:09
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