mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-26 12:24:46 +01:00
Main Menu: Remove beta chat buttons (#1914)
This commit is contained in:
parent
918f1cdf7b
commit
6f7e762e6c
@ -1,3 +1,4 @@
|
||||
/* eslint-disable max-len */
|
||||
const Telegraph = require('telegraph-node');
|
||||
const { JSDOM } = require('jsdom');
|
||||
const { gitlogPromise } = require('gitlog');
|
||||
@ -16,10 +17,12 @@ const gitOptions = {
|
||||
|
||||
const pageTemplate = `
|
||||
<body>\
|
||||
<aside><img src="https://webz.dev/icon-dev-512x512.png" /></aside>
|
||||
<h3>Commits since ${version}</h3>\
|
||||
<blockquote>This list is automatically updated when a new commit pushed to the beta repo</blockquote>\
|
||||
<p><i>This list is automatically updated when a new commit pushed to the beta repo</i></p>\
|
||||
<ul id="list"></ul>\
|
||||
<blockquote>Last updated ${new Date().toLocaleDateString('en-CA')}</blockquote>\
|
||||
<aside><a href="https://t.me/webzchat">WebZ Discussion</a> <b>|</b> <a href="https://t.me/webzcommentsru">WebZ Обсуждение</a></aside>\
|
||||
<aside><i>Last update: ${new Date().toLocaleDateString('en-CA')}</i></aside>\
|
||||
</body>
|
||||
`.trim();
|
||||
|
||||
|
@ -11,8 +11,6 @@ import {
|
||||
ANIMATION_LEVEL_MAX,
|
||||
APP_NAME, APP_VERSION,
|
||||
BETA_CHANGELOG_URL,
|
||||
BETA_DISCUSSION_CHAT_EN,
|
||||
BETA_DISCUSSION_CHAT_RU,
|
||||
DEBUG,
|
||||
FEEDBACK_URL,
|
||||
IS_BETA,
|
||||
@ -211,14 +209,6 @@ const LeftMainHeader: FC<OwnProps & StateProps> = ({
|
||||
window.open(BETA_CHANGELOG_URL, '_blank', 'noopener');
|
||||
}, []);
|
||||
|
||||
const handleRuDiscussionClick = useCallback(() => {
|
||||
openChatByUsername({ username: BETA_DISCUSSION_CHAT_RU });
|
||||
}, [openChatByUsername]);
|
||||
|
||||
const handleEnDiscussionClick = useCallback(() => {
|
||||
openChatByUsername({ username: BETA_DISCUSSION_CHAT_EN });
|
||||
}, [openChatByUsername]);
|
||||
|
||||
const handleSwitchToWebK = useCallback(() => {
|
||||
setPermanentWebVersion('K');
|
||||
clearWebsync();
|
||||
@ -315,26 +305,12 @@ const LeftMainHeader: FC<OwnProps & StateProps> = ({
|
||||
Report Bug
|
||||
</MenuItem>
|
||||
{IS_BETA && (
|
||||
<>
|
||||
<MenuItem
|
||||
icon="permissions"
|
||||
onClick={handleChangelogClick}
|
||||
>
|
||||
Beta Changelog
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
icon="comments"
|
||||
onClick={handleRuDiscussionClick}
|
||||
>
|
||||
Beta Discussion (ru)
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
icon="comments"
|
||||
onClick={handleEnDiscussionClick}
|
||||
>
|
||||
Beta Discussion (en)
|
||||
</MenuItem>
|
||||
</>
|
||||
<MenuItem
|
||||
icon="permissions"
|
||||
onClick={handleChangelogClick}
|
||||
>
|
||||
Beta Changelog
|
||||
</MenuItem>
|
||||
)}
|
||||
{withOtherVersions && (
|
||||
<>
|
||||
|
@ -10,8 +10,6 @@ export const IS_PERF = process.env.APP_ENV === 'perf';
|
||||
export const IS_BETA = process.env.APP_ENV === 'staging';
|
||||
|
||||
export const BETA_CHANGELOG_URL = 'https://telegra.ph/WebZ-Beta-04-01';
|
||||
export const BETA_DISCUSSION_CHAT_RU = 'webzcommentsru';
|
||||
export const BETA_DISCUSSION_CHAT_EN = 'webzchat';
|
||||
|
||||
export const DEBUG_ALERT_MSG = 'Shoot!\nSomething went wrong, please see the error details in Dev Tools Console.';
|
||||
export const DEBUG_GRAMJS = false;
|
||||
|
Loading…
Reference in New Issue
Block a user