-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fixing redirect on removed from channel #4068
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test should be updated if it is no longer going to goToLastViewedChannel
but the Default Team after removal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we unit test the changes here?
cc @mgdelacroix re: #3960
@lieut-data done |
@marianunez done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jespino
When a user is removed from only one channel in a team, the user is not automatically redirected to the other channel. The user sees a loading error as shown in this screenshot. Also attaching few JS errors thrown in the console, when it tries to redirect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that there is a seperate PR to fix the issue mentioned earlier:
#4070
So approving this PR since all the original issue reported is working fine on the PR instance.
Test server destroyed |
@jespino
|
* Fixing redirect on removed from channel * adding tests * Remove unnecesary broken test * Fixing linting errors
* Fixing redirect on removed from channel * adding tests * Remove unnecesary broken test * Fixing linting errors
Summary
When a user was removed from a channel the redirection was made by the modal
component, now is made by the handler in the websocket function. And is using
the correct approach to redirect the user.
Ticket Link
MM-19040