hippware / rn-chat

MIT License
5 stars 0 forks source link

Don't lose map options when upgrading or codepush-ing #4849

Open bengtan opened 4 years ago

bengtan commented 4 years ago

From https://github.com/hippware/collaboration/issues/22#issuecomment-586364539:

User has the map orientation set to satellite, the user updates the app and the orientation has now reverted back to the default.

I believe this is referring to the mapOptions setting in HomeStore. It's lost upon upgrade (or codepush). It'd be nice to preserve it across upgrade or codepush.

southerneer commented 4 years ago

Whatever solution we come up with should be capable of generalizing to other pieces of local state that we want to survive across upgrades/codepushes since this kind of request will inevitably come up again.

bengtan commented 4 years ago

Here's some past history that's probably relevant.

There was a ticket ...

... which had a similar problem.

There was a discussion ...

... on how to fix it.

There was some talk about (creating and) preserving a dedicated part (ie. 'settingsStore'?) of the MST tree across upgrades. But this was short-circuited by just storing in clientData instead.

So, for this ticket, I guess we could revive the discussion about 'settingsStore' or just store it in clientData.

aksonov commented 4 years ago

@bengtan Yes, I solved it in the same way as I did with 'invisible' mode before.

bengtan commented 4 years ago

QA notes:

This ticket should be tested by upgrading from a version which already includes this ticket.