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

Commit 65c74bd

Browse files
authored
Bring View Source back from behind developer mode (#8369)
1 parent e45cd39 commit 65c74bd

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/components/views/context_menus/MessageContextMenu.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,14 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
397397
);
398398
}
399399

400-
let viewSourceButton: JSX.Element;
401-
if (SettingsStore.getValue("developerMode")) {
402-
viewSourceButton = (
403-
<IconizedContextMenuOption
404-
iconClassName="mx_MessageContextMenu_iconSource"
405-
label={_t("View source")}
406-
onClick={this.onViewSourceClick}
407-
/>
408-
);
409-
}
400+
// This is specifically not behind the developerMode flag to give people insight into the Matrix
401+
const viewSourceButton = (
402+
<IconizedContextMenuOption
403+
iconClassName="mx_MessageContextMenu_iconSource"
404+
label={_t("View source")}
405+
onClick={this.onViewSourceClick}
406+
/>
407+
);
410408

411409
let unhidePreviewButton: JSX.Element;
412410
if (eventTileOps?.isWidgetHidden()) {

0 commit comments

Comments
 (0)