[FIX] Directory sending incorrect room type (#3188)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
87dd31a91a
commit
29ccb47456
|
@ -154,7 +154,7 @@ class DirectoryView extends React.Component {
|
||||||
} else if (['p', 'c'].includes(item.t) && !item.teamMain) {
|
} else if (['p', 'c'].includes(item.t) && !item.teamMain) {
|
||||||
const { room } = await RocketChat.getRoomInfo(item._id);
|
const { room } = await RocketChat.getRoomInfo(item._id);
|
||||||
this.goRoom({
|
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 {
|
} else {
|
||||||
this.goRoom({
|
this.goRoom({
|
||||||
|
|
Loading…
Reference in New Issue