Bring `View Source` back from behind developer mode (#8369)

t3chguy/dedup-icons-17oct
Michael Telatynski 2022-04-20 09:24:20 +01:00 committed by GitHub
parent e45cd39906
commit 65c74bd158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 10 deletions

View File

@ -397,16 +397,14 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
);
}
let viewSourceButton: JSX.Element;
if (SettingsStore.getValue("developerMode")) {
viewSourceButton = (
// This is specifically not behind the developerMode flag to give people insight into the Matrix
const viewSourceButton = (
<IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_iconSource"
label={_t("View source")}
onClick={this.onViewSourceClick}
/>
);
}
let unhidePreviewButton: JSX.Element;
if (eventTileOps?.isWidgetHidden()) {