we store information regarding muted/archived groups in the metadata of a user object.
- When I log in with a user, I can see the user object in the local storage.
- I change some info in the metadata (in production, for example, this could happen when a user adds a chat to mute/archive list). I simply change the name of the user in the Metadata tag.
- I log in again with the same user. The old (not updated) version of the user object is in Local Storage.
When I log in with a totally different user, THEN log in again with the original user, then the updated Local Storage user object/key is in place.