From 5c6b4633bc28469f6e4d4d5eddf4d3c8a93e5053 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Mon, 23 Aug 2021 10:45:02 -0300 Subject: [PATCH] [FIX] Wrong message when room is closed by the Guest (#3289) Co-authored-by: Gerzon Z Co-authored-by: Diego Mello --- 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 4a4ff924b..b4eeeadd3 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')); } }