Improve notification user handling #1865
Merged
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.
Pull Request Description
This PR makes a slight tweak to how notifications across multiple accounts are handled, specifically the use case of opening a notification directed at a user which is not the currently selected user in Thunder.
The previous behavior is:
This workflow has the potential for confusion regarding which user you are when you look at the notification, as well as when you navigate back (it changes without any indication), and it has potential for bugs as well.
I propose a new workflow, which is to explicitly change the selected user to the one that received the notification, and tell the user we are making this change via a snackbar. Then do not automatically switch back to another user. That can be done manually if desired.
This change is inspired by how some popular social media apps work, and I think it makes the whole interaction much more clear and straightforward.
Issue Being Fixed
Issue Number: N/A
Screenshots / Recordings
qemu-system-x86_64_hn6OGxXZLC.mp4
Checklist
semanticLabel
s where applicable for accessibility?