Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ function WorkspaceNewRoomPage(props) {
);

useEffect(() => {
if (Permissions.canUsePolicyRooms(props.betas)) {
if (Permissions.canUsePolicyRooms(props.betas) && workspaceOptions.length) {
return;
}
Log.info('Not showing create Policy Room page since user is not on policy rooms beta');
Navigation.dismissModal();
}, [props.betas]);
}, [props.betas, workspaceOptions]);

if (!Permissions.canUsePolicyRooms(props.betas)) {
if (!Permissions.canUsePolicyRooms(props.betas) || !workspaceOptions.length) {

@GItGudRatio GItGudRatio Jul 14, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to avoid an issue in native devices where, a small keyboard flickering issue can be seen when clicking on the link. Here's a visual sample of the bug:

2023-07-14.12-17-15.mp4

return null;
}

Expand Down