mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-25 05:49:28 +00:00
Pascal Precht
202a789c67
fix: ensure notification settings are cached from RPC
There are a bunch of notification related settings that cause RPC calls when read from the UI in QML/Qt. This is bad because whenever the view tries to read a notification setting it causes an RPC call and then rerenders the view. This happens pretty much every time a new signal arrives in the client. To account for that we now fetch all notification settings once and mark the service as initialized so it know when to simply return cached values. The cache is updated when the notification settings change. Fixes #10493
Status-desktop
Desktop client for the Status Network built with Nim and Qt
Dev Docs: https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2F%40status-desktop%2FB1eOaf-nd
Description
Languages
QML
38.7%
JavaScript
29.9%
Nim
18.7%
Python
5.7%
C++
5.3%
Other
1.6%