From 29ccb4745670751938244dee7ed1eb8c494ced40 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Mon, 7 Jun 2021 11:56:11 -0300 Subject: [PATCH] [FIX] Directory sending incorrect room type (#3188) Co-authored-by: Diego Mello --- app/views/DirectoryView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/DirectoryView/index.js b/app/views/DirectoryView/index.js index c5cacb64d1..6e60b44bc6 100644 --- a/app/views/DirectoryView/index.js +++ b/app/views/DirectoryView/index.js @@ -154,7 +154,7 @@ class DirectoryView extends React.Component { } else if (['p', 'c'].includes(item.t) && !item.teamMain) { const { room } = await RocketChat.getRoomInfo(item._id); this.goRoom({ - rid: item._id, name: item.name, joinCodeRequired: room.joinCodeRequired, t: 'c', search: true + rid: item._id, name: item.name, joinCodeRequired: room.joinCodeRequired, t: item.t, search: true }); } else { this.goRoom({