From 5cfe06979c72e87c12c6c3493d9abbf7d449177a Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Wed, 21 Jul 2021 20:10:48 -0300 Subject: [PATCH] [FIX] WWrong message when room is closed --- app/views/RoomView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomView/index.js b/app/views/RoomView/index.js index 13de89c87d9..2384731e878 100644 --- a/app/views/RoomView/index.js +++ b/app/views/RoomView/index.js @@ -739,7 +739,7 @@ class RoomView extends React.Component { const { room } = this.state; if (rid === this.rid) { Navigation.navigate('RoomsListView'); - showErrorAlert(I18n.t('You_were_removed_from_channel', { channel: RocketChat.getRoomTitle(room) }), I18n.t('Oops')); + !this.isOmnichannel && showErrorAlert(I18n.t('You_were_removed_from_channel', { channel: RocketChat.getRoomTitle(room) }), I18n.t('Oops')); } }