This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
MM-18708 Fix state of embed visibility for users logging in on same browser/client #4177
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Found this bug by @larkox while submitting E2E for link preview which includes tests for:
...
4. Have the user who posted it click the collapse arrows to collapse the preview
5. Verify preview did not collapse for other user
...
This can probably affect those users who shares logging in to a common workstation.
Before, the storage key is
![Screen Shot 2019-11-11 at 10 25 27 PM](https://user-images.githubusercontent.com/5334504/68594295-34945100-04d2-11ea-907e-22a262baf457.png)
...:isVisible_[postId]
:After,
![Screen Shot 2019-11-11 at 10 03 09 PM](https://user-images.githubusercontent.com/5334504/68594116-d4051400-04d1-11ea-8b6b-0b0fe708b5a4.png)
...:isVisible_[userId]_[postId]
:Note: I didn't bother to add backwards compatibility since this don't have noticeable change (where user mostly cared on embed visibility of recent post/s).
Ticket Link
Jira ticket: MM-18708