diff --git a/src/components/left/main/LeftMainHeader.tsx b/src/components/left/main/LeftMainHeader.tsx index a80ff5474..0bedab311 100644 --- a/src/components/left/main/LeftMainHeader.tsx +++ b/src/components/left/main/LeftMainHeader.tsx @@ -81,7 +81,6 @@ type StateProps = & Pick & Pick; const ANIMATION_LEVEL_OPTIONS = [0, 1, 2]; -const LEGACY_VERSION_URL = 'https://web.telegram.org/?legacy=1'; const WEBK_VERSION_URL = 'https://web.telegram.org/k/'; const LeftMainHeader: FC = ({ @@ -237,10 +236,6 @@ const LeftMainHeader: FC = ({ skipLockOnUnload(); }, [skipLockOnUnload]); - const handleSwitchToLegacy = useCallback(() => { - skipLockOnUnload(); - }, [skipLockOnUnload]); - const handleOpenTipsChat = useCallback(() => { openChatByUsername({ username: lang('Settings.TipsUsername') }); }, [lang, openChatByUsername]); @@ -346,22 +341,13 @@ const LeftMainHeader: FC = ({ )} {withOtherVersions && ( - <> - - Switch to K Version - - - Switch to Old Version - - + + Switch to K Version + )} {canInstall && ( = ({ ), [ animationLevel, archivedUnreadChatsCount, canInstall, handleAnimationLevelChange, handleBugReportClick, - handleChangelogClick, handleDarkModeToggle, handleOpenTipsChat, handleSelectSaved, handleSwitchToLegacy, - handleSwitchToWebK, lang, onSelectArchived, onSelectContacts, onSelectSettings, theme, withOtherVersions, + handleChangelogClick, handleDarkModeToggle, handleOpenTipsChat, handleSelectSaved, handleSwitchToWebK, lang, + onSelectArchived, onSelectContacts, onSelectSettings, theme, withOtherVersions, ]); return (