Skip to content

Commit

Permalink
Merge pull request #23030 from StevenKKC/fixNavigateToThread
Browse files Browse the repository at this point in the history
fix navigating to thread when clicking on go to #admins or #announce room
  • Loading branch information
luacmartins authored Jul 19, 2023
2 parents 40f354b + b896aca commit 56e69e6
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);
const room = _.find(props.reports, (report) => report && report.policyID === policy.id && report.chatType === type && !ReportUtils.isThread(report));
Navigation.navigate(ROUTES.getReportRoute(room.reportID));
},
[props.reports, policy],
Expand Down

0 comments on commit 56e69e6

Please sign in to comment.