On first load, notification icons are missing colors
adufr opened this issue Β· comments
Arthur commented
π Is there already an issue for your problem?
- I have checked older issues, open and closed
π Description
When opening the app (or reloading it by pressing Cmd/Control+R), notifications are loaded without their color.
The issue is caused by the following block:
Lines 69 to 78 in 1c3c248
When first running the app, it looks like useNotifications
is called with colors: false
because the settings might not have already be initialized, thus the following code block is not being called, resulting in the missing colors:
gitify/src/hooks/useNotifications.ts
Lines 142 to 163 in 1c3c248
πͺ Steps To Reproduce
- Open Gitify -> notification icons are missing their color
- Click the reload notifications button -> notifications do now have their color
βΉ System Info
`main` branch