[//]: <Don't delete any header! Please fill out the form, or your bug report will not be considered!>
Environment
Environment: Production
Last git commit: 9109d90fe8f6cd3ad910b4f7b31328a9b11148ef
Platform: Web Desktop\Web Mobile\Electron\PWA\TWA
Browser: Chrome\Edge\Firefox\Safari\Others
How to repro
Step 1: Open a conversation that contains lots of photos. Load at least 100 photos.
Step 2: Switch to another conversation and wait till one hour.
Step 3: Switch back to that old conversation
And then, all messages are loaded from the cache. So you can see all those 100 messages at once. But file token is outdated so the client will load 100 photos at the same time. It will be treated as DOS and cause the server reject your requests.
Expected situation
I expect that even 100 messages are in the cache, only loads 15 of them when you switch to this conversation.
[//]: <Don't delete any header! Please fill out the form, or your bug report will not be considered!>
Environment
Production
Web Desktop\Web Mobile\Electron\PWA\TWA
Chrome\Edge\Firefox\Safari\Others
How to repro
And then, all messages are loaded from the cache. So you can see all those 100 messages at once. But file token is outdated so the client will load 100 photos at the same time. It will be treated as DOS and cause the server reject your requests.
Expected situation
I expect that even 100 messages are in the cache, only loads 15 of them when you switch to this conversation.
Other information
Nothing.