AiursoftWeb / Kahla.App

Kahla is a cross-platform business messaging app.
https://www.kahla.app
MIT License
415 stars 85 forks source link

Too many loaded messages may cause all resources downloads slow. #900

Closed Anduin2017 closed 4 years ago

Anduin2017 commented 4 years ago

[//]: <Don't delete any header! Please fill out the form, or your bug report will not be considered!>

Environment

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.