Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Bring View Source back from behind developer mode (#8369)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Apr 20, 2022
1 parent e45cd39 commit 65c74bd
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/components/views/context_menus/MessageContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,14 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
);
}

let viewSourceButton: JSX.Element;
if (SettingsStore.getValue("developerMode")) {
viewSourceButton = (
<IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_iconSource"
label={_t("View source")}
onClick={this.onViewSourceClick}
/>
);
}
// 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()) {
Expand Down

0 comments on commit 65c74bd

Please sign in to comment.