-
Notifications
You must be signed in to change notification settings - Fork 21
Fix notifications settings that were not remembered #75
Conversation
This is fantastic, thanks for all the hard work! Love the idea of storing this in the config file, makes a lot of sense honestly. My only thought here might be to pull the sync settings from the redux store and pass into the sync settings. Since we already have the data stored within redux. |
Only other thing here is to write a config migration script to add this to the users config.json file. I'm more than happy to do that if you want since electron-store can be weird to work with. |
For the migration script, it's good for me if you take care of it. I'll take a look at how you do it so that I can get and idea of how it works. For the sync settings point, I'm not really following, sorry. I thought we were already pulling the sync settings from the redux store. Could you give a bit more details ? |
Just added some comments, let me know if it makes sense! |
I cannot see your comments x) Maybe you need to submit them or something |
@petitcl - I put them actually on the code, below is a screenshot of them. Basically, i'm wondering if you think it would be worth it to pass the notification settings down as params to the update function instead of reading the config in the update function. |
@petitcl - I did another review on this, sorry my prior comments seemed confusing. I pushed a few updates and actually still had the original issue. It seems when switching profiles we never reset the syncCount. Adjusted this, and added the config migration scripts we talked about. Let me know if you have any feedback. I'll probably merge this here shortly. |
@petitcl - I went ahead and merged this since I had to make some changes in the release branch that relied on this. Let me know if you noticed any issues and I'll open another PR to fix them. Thanks for this hard work!! |
Fixes #72
SyncToggles
component toNotificationsSettings
to better reflect its purpose