Skip to content

Commit

Permalink
Merge pull request #27317 from bernhardoj/fix/23758-dimiss-modal-when…
Browse files Browse the repository at this point in the history
…-go-to-ws-chat

Dismiss modal when going to workspace admins/announce chat
  • Loading branch information
danieldoglas authored Sep 15, 2023
2 parents e48121c + e445636 commit c36ac0c
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 c36ac0c

Please sign in to comment.