From 65c74bd1580d5a8088ec2d9c2add9384326d5d65 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 20 Apr 2022 09:24:20 +0100 Subject: [PATCH] Bring `View Source` back from behind developer mode (#8369) --- .../views/context_menus/MessageContextMenu.tsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/components/views/context_menus/MessageContextMenu.tsx b/src/components/views/context_menus/MessageContextMenu.tsx index 55b893b784..917091ece8 100644 --- a/src/components/views/context_menus/MessageContextMenu.tsx +++ b/src/components/views/context_menus/MessageContextMenu.tsx @@ -397,16 +397,14 @@ export default class MessageContextMenu extends React.Component ); } - 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 = ( + + ); let unhidePreviewButton: JSX.Element; if (eventTileOps?.isWidgetHidden()) {