runfix: do not overwrite service id when opening the service details #17405
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.
Description
After fixing a different bug (see https://github.com/wireapp/wire-webapp/pull/17378/files#diff-42332a315c252fd2b9da98fb360d34d231ad1fd02b62c115ee191dfd6dc86fa1R236), there was an oversight and I've forgot to update another place where are opening the right conversation panel with service entity.
We should not overwrite the service entity id with user's id when opening a right sidebar panel. It needs a service id (the one set on backend) to work properly.
Also the isAddMode was moved to the right panel opening params. When it was kept inside the react state (and right panel was not closed before opening again with the avatar click), the add button was visible even though the service was already added.
Screenshots/Screencast (for UI changes)
Checklist