Redirected to home when a room has been deleted instead of getting broken link(blank page) of deleted room (#16227)

pull/16210/head^2
Ashwani Yadav 6 years ago committed by GitHub
parent 285837634c
commit ed091d33fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/ui-utils/client/lib/ChannelActions.js

@ -84,6 +84,9 @@ export function erase(rid) {
html: false,
}, async () => {
await call('eraseRoom', rid);
if (['channel', 'group', 'direct'].includes(FlowRouter.getRouteName()) && (Session.get('openedRoom') === rid)) {
FlowRouter.go('home');
}
modal.open({
title: t('Deleted'),
text: t('Room_has_been_deleted'),

Loading…
Cancel
Save