Skip to content

Commit

Permalink
dismiss modal when going to workspace admins/announce chat
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Sep 13, 2023
1 parent a4672a3 commit e445636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceInitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function WorkspaceInitialPage(props) {
const goToRoom = useCallback(
(type) => {
const room = _.find(props.reports, (report) => report && report.policyID === policy.id && report.chatType === type && !ReportUtils.isThread(report));
Navigation.navigate(ROUTES.getReportRoute(room.reportID));
Navigation.dismissModal(room.reportID);
},
[props.reports, policy],
);
Expand Down

0 comments on commit e445636

Please sign in to comment.