Reduce number of API requests
Currently, quite a few requests are made which should be avoidable. Most of those are made on the room overview page.
The following optimizations could be made:
-
Don't request focus-event when focus mode is disabled. -
Don't request room stats twice. -
Don't request full content groups for the overview. Use the stats which are already requested. -
Don't request room when it is already received through a request-access response. -
Don't request configuration and auth on app initialization if they have recently retrieved. -
Don't request the same contents multiple times.
Edited by Daniel Gerhardt