Restarting extension only clears buddylist
Restarting the uProxy chrome extension but not the app results in the buddylist being cleared, until you sign out then sign in again.
This is unlikely to affect real users but is annoying for developers who are making changes to the extension only - ideally you should be able to rebuild just the extension, then reload the extension, retrieve the current state from the app, and not need to restart the app or sign in again.
Hypothesis: reason is that users are sent to the UI incrementally. We need to have a send-all message from UI to core when extension first finds the app.
This is not just buddy list, anything in the extension would be inaccurate.
We could have everything included in GET_INITIAL_STATE, but that might be buggy.
We could have app restart when extension is restarted.
How about we make everything included in get initial state, and make it not buggy? :)
It's not just a roster right? you have to send the whole state, and make sure that when you make changes you won't forget to add it there.
Also do we really care? why would user want to reload extension without reloading the app?
On Wed, Dec 10, 2014 at 9:34 PM, iislucas [email protected] wrote:
How about we make everything included in get initial state, and make it not buggy? :)
— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/239#issuecomment-66560624.
Probably users won't do this intentionally, but it is possible that just the extension crashes and restarts but not the app - it would be good to reset gracefully in that case (although everything will fix itself when the restart chrome).
Adding everything to GET_INITIAL_STATE sounds nice although it might not be trivial to do - right now the extension only gets a few fields (names of social networks and some user settings like description) from the initial state, and everything else it builds up over time through updates for the user, network, etc.
I think probably the best solution is to be able to programatically restart the app and extension together (https://github.com/uProxy/uproxy/issues/644), although that has some issues with Chrome (https://code.google.com/p/chromium/issues/detail?id=430549)
No longer an issue now that we have GET_INITIAL_STATE