[Refactoring] Rename modules/* -> global/*

This commit is contained in:
Alexander Zinchuk 2022-03-19 21:19:11 +01:00
parent b025fccf0f
commit e204fa36a5
317 changed files with 529 additions and 529 deletions

View File

@ -1,5 +1,5 @@
import React, { FC, useEffect } from './lib/teact/teact';
import { getActions, withGlobal } from './modules';
import { getActions, withGlobal } from './global';
import { GlobalState } from './global/types';

View File

@ -1,4 +1,4 @@
import { getActions, getGlobal } from '../modules';
import { getActions, getGlobal } from '../global';
import { DEBUG } from '../config';

View File

@ -1,9 +1,9 @@
import React, { FC, useEffect, memo } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';
import '../../modules/actions/initial';
import '../../global/actions/initial';
import { pick } from '../../util/iteratees';
import { PLATFORM_ENV } from '../../util/environment';
import windowSize from '../../util/windowSize';

View File

@ -2,7 +2,7 @@ import { FormEvent } from 'react';
import React, {
FC, useState, useEffect, useCallback, memo, useRef,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';
import { IS_TOUCH_ENV } from '../../util/environment';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useState,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';

View File

@ -5,7 +5,7 @@ import monkeyPath from '../../assets/monkey.svg';
import React, {
FC, memo, useCallback, useEffect, useLayoutEffect, useRef, useState,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';
import { LangCode } from '../../types';

View File

@ -2,7 +2,7 @@ import QrCreator from 'qr-creator';
import React, {
FC, useEffect, useRef, memo, useCallback,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';
import { LangCode } from '../../types';

View File

@ -1,6 +1,6 @@
import { ChangeEvent } from 'react';
import React, { FC, useState, memo } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, useState, memo, useCallback, useRef,
} from '../../lib/teact/teact';
import { withGlobal } from '../../modules';
import { withGlobal } from '../../global';
import { ApiCountryCode } from '../../api/types';

View File

@ -2,11 +2,11 @@ import { GroupCallParticipant } from '../../lib/secret-sauce';
import React, {
FC, memo, useEffect,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiGroupCall } from '../../api/types';
import { selectActiveGroupCall, selectGroupCallParticipant } from '../../modules/selectors/calls';
import { selectActiveGroupCall, selectGroupCallParticipant } from '../../global/selectors/calls';
import buildClassName from '../../util/buildClassName';
import useLang from '../../hooks/useLang';

View File

@ -1,11 +1,11 @@
import React, { FC, memo, useState } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import ConfirmDialog from '../ui/ConfirmDialog';
import Checkbox from '../ui/Checkbox';
import { selectCallFallbackChannelTitle } from '../../modules/selectors/calls';
import { getUserFullName } from '../../modules/helpers';
import { selectCurrentMessageList, selectUser } from '../../modules/selectors';
import { selectCallFallbackChannelTitle } from '../../global/selectors/calls';
import { getUserFullName } from '../../global/helpers';
import { selectCurrentMessageList, selectUser } from '../../global/selectors';
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
export type OwnProps = {

View File

@ -5,8 +5,8 @@ import {
import React, {
FC, memo, useCallback, useEffect, useMemo, useRef, useState,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import '../../../modules/actions/calls';
import { getActions, withGlobal } from '../../../global';
import '../../../global/actions/calls';
import { IAnchorPosition } from '../../../types';
@ -21,7 +21,7 @@ import {
selectGroupCall,
selectGroupCallParticipant,
selectIsAdminInActiveGroupCall,
} from '../../../modules/selectors/calls';
} from '../../../global/selectors/calls';
import useFlag from '../../../hooks/useFlag';
import useLang from '../../../hooks/useLang';

View File

@ -2,12 +2,12 @@ import { GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../
import React, {
FC, memo, useMemo, useRef,
} from '../../../lib/teact/teact';
import { withGlobal } from '../../../modules';
import { withGlobal } from '../../../global';
import { ApiChat, ApiUser } from '../../../api/types';
import buildClassName from '../../../util/buildClassName';
import { selectChat, selectUser } from '../../../modules/selectors';
import { selectChat, selectUser } from '../../../global/selectors';
import useLang from '../../../hooks/useLang';
import { GROUP_CALL_DEFAULT_VOLUME, GROUP_CALL_VOLUME_MULTIPLIER } from '../../../config';

View File

@ -1,9 +1,9 @@
import { GroupCallParticipant as TypeGroupCallParticipant } from '../../../lib/secret-sauce';
import React, { FC, memo, useMemo } from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import useLang from '../../../hooks/useLang';
import { selectActiveGroupCall } from '../../../modules/selectors/calls';
import { selectActiveGroupCall } from '../../../global/selectors/calls';
import useInfiniteScroll from '../../../hooks/useInfiniteScroll';
import GroupCallParticipant from './GroupCallParticipant';

View File

@ -2,7 +2,7 @@ import { GroupCallParticipant } from '../../../lib/secret-sauce';
import React, {
FC, memo, useCallback, useEffect, useState,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { IAnchorPosition } from '../../../types';
@ -10,7 +10,7 @@ import buildClassName from '../../../util/buildClassName';
import useThrottle from '../../../hooks/useThrottle';
import useFlag from '../../../hooks/useFlag';
import useLang from '../../../hooks/useLang';
import { selectIsAdminInActiveGroupCall } from '../../../modules/selectors/calls';
import { selectIsAdminInActiveGroupCall } from '../../../global/selectors/calls';
import { GROUP_CALL_DEFAULT_VOLUME, GROUP_CALL_VOLUME_MULTIPLIER } from '../../../config';
import Menu from '../../ui/Menu';

View File

@ -2,9 +2,9 @@ import { GroupCallParticipant } from '../../../lib/secret-sauce';
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { withGlobal } from '../../../modules';
import { withGlobal } from '../../../global';
import GroupCallParticipantVideo from './GroupCallParticipantVideo';
import { selectActiveGroupCall } from '../../../modules/selectors/calls';
import { selectActiveGroupCall } from '../../../global/selectors/calls';
import buildClassName from '../../../util/buildClassName';
type OwnProps = {

View File

@ -1,11 +1,11 @@
import { getUserStreams, GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../../../lib/secret-sauce';
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { withGlobal } from '../../../modules';
import { withGlobal } from '../../../global';
import { ApiChat, ApiUser } from '../../../api/types';
import buildClassName from '../../../util/buildClassName';
import { selectChat, selectUser } from '../../../modules/selectors';
import { selectChat, selectUser } from '../../../global/selectors';
import useLang from '../../../hooks/useLang';
import { ENABLE_THUMBNAIL_VIDEO } from '../../../config';

View File

@ -1,13 +1,13 @@
import React, {
FC, memo, useCallback, useEffect, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiChat, ApiGroupCall, ApiUser } from '../../../api/types';
import { selectChatGroupCall } from '../../../modules/selectors/calls';
import { selectChatGroupCall } from '../../../global/selectors/calls';
import buildClassName from '../../../util/buildClassName';
import { selectChat } from '../../../modules/selectors';
import { selectChat } from '../../../global/selectors';
import useLang from '../../../hooks/useLang';
import Button from '../../ui/Button';

View File

@ -2,12 +2,12 @@ import { GroupCallConnectionState } from '../../../lib/secret-sauce';
import React, {
FC, memo, useEffect, useMemo, useRef, useState,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import buildClassName from '../../../util/buildClassName';
import { vibrateShort } from '../../../util/vibrate';
import usePrevious from '../../../hooks/usePrevious';
import { selectActiveGroupCall, selectGroupCallParticipant } from '../../../modules/selectors/calls';
import { selectActiveGroupCall, selectGroupCallParticipant } from '../../../global/selectors/calls';
import useLang from '../../../hooks/useLang';
import AnimatedIcon from '../../common/AnimatedIcon';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState,
} from '../../lib/teact/teact';
import { getActions } from '../../modules';
import { getActions } from '../../global';
import {
ApiAudio, ApiMediaFormat, ApiMessage, ApiVoice,
@ -17,7 +17,7 @@ import {
getMessageMediaHash,
isMessageLocal,
isOwnMessage,
} from '../../modules/helpers';
} from '../../global/helpers';
import { MAX_EMPTY_WAVEFORM_POINTS, renderWaveform } from './helpers/waveform';
import buildClassName from '../../util/buildClassName';
import renderText from './helpers/renderText';

View File

@ -15,7 +15,7 @@ import {
isChatWithRepliesBot,
isDeletedUser,
isUserOnline,
} from '../../modules/helpers';
} from '../../global/helpers';
import { getFirstLetters } from '../../util/textFormat';
import buildClassName from '../../util/buildClassName';
import renderText from './helpers/renderText';

View File

@ -1,17 +1,17 @@
import React, {
FC, memo, useCallback, useEffect,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { GlobalState } from '../../global/types';
import { ApiChat, ApiCountryCode, ApiUser } from '../../api/types';
import {
selectChat, selectNotifyExceptions, selectNotifySettings, selectUser,
} from '../../modules/selectors';
} from '../../global/selectors';
import {
getChatDescription, getChatLink, getHasAdminRight, isChatChannel, isUserId, isUserRightBanned, selectIsChatMuted,
} from '../../modules/helpers';
} from '../../global/helpers';
import renderText from './helpers/renderText';
import { copyTextToClipboard } from '../../util/clipboard';
import { formatPhoneNumberWithCode } from '../../util/phoneNumber';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback } from '../../lib/teact/teact';
import { getActions } from '../../modules';
import { getActions } from '../../global';
import buildClassName from '../../util/buildClassName';

View File

@ -8,7 +8,7 @@ import useInfiniteScroll from '../../hooks/useInfiniteScroll';
import useLang from '../../hooks/useLang';
import useKeyboardListNavigation from '../../hooks/useKeyboardListNavigation';
import useInputFocusOnOpen from '../../hooks/useInputFocusOnOpen';
import { isUserId } from '../../modules/helpers';
import { isUserId } from '../../global/helpers';
import Loading from '../ui/Loading';
import Modal from '../ui/Modal';

View File

@ -1,9 +1,9 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiChat } from '../../api/types';
import { selectIsChatWithSelf, selectUser } from '../../modules/selectors';
import { selectIsChatWithSelf, selectUser } from '../../global/selectors';
import {
isUserId,
isUserBot,
@ -13,7 +13,7 @@ import {
isChatSuperGroup,
isChatChannel,
getChatTitle,
} from '../../modules/helpers';
} from '../../global/helpers';
import useLang from '../../hooks/useLang';
import renderText from './helpers/renderText';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiMessage } from '../../api/types';
import { IAlbum } from '../../types';
@ -9,14 +9,14 @@ import {
selectChat,
selectCurrentMessageList,
selectUser,
} from '../../modules/selectors';
} from '../../global/selectors';
import {
isUserId,
getUserFirstOrLastName,
getPrivateChatUserId,
isChatBasicGroup,
isChatSuperGroup,
} from '../../modules/helpers';
} from '../../global/helpers';
import renderText from './helpers/renderText';
import useLang from '../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, memo, useRef, useEffect, useState,
} from '../../lib/teact/teact';
import { getActions } from '../../modules';
import { getActions } from '../../global';
import { ApiMessage } from '../../api/types';
@ -11,7 +11,7 @@ import {
getMessageMediaHash,
getMessageMediaThumbDataUri,
isMessageDocumentVideo,
} from '../../modules/helpers';
} from '../../global/helpers';
import { ObserveFn, useIsIntersecting } from '../../hooks/useIntersectionObserver';
import useMediaWithLoadProgress from '../../hooks/useMediaWithLoadProgress';
import useMedia from '../../hooks/useMedia';

View File

@ -7,7 +7,7 @@ import {
isActionMessage,
getSenderTitle,
getMessageRoundVideo,
} from '../../modules/helpers';
} from '../../global/helpers';
import renderText from './helpers/renderText';
import { getPictogramDimensions } from './helpers/mediaDimensions';
import buildClassName from '../../util/buildClassName';

View File

@ -5,7 +5,7 @@ import { ApiGroupCall } from '../../api/types';
import buildClassName from '../../util/buildClassName';
import Link from '../ui/Link';
import { getActions } from '../../modules';
import { getActions } from '../../global';
type OwnProps = {
className?: string;

View File

@ -2,7 +2,7 @@ import { MouseEvent as ReactMouseEvent } from 'react';
import React, {
FC, useEffect, useCallback, memo,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiChat, ApiTypingStatus } from '../../api/types';
import { GlobalState } from '../../global/types';
@ -12,8 +12,8 @@ import {
getChatTypeString,
getChatTitle,
isChatSuperGroup,
} from '../../modules/helpers';
import { selectChat, selectChatMessages, selectChatOnlineCount } from '../../modules/selectors';
} from '../../global/helpers';
import { selectChat, selectChatMessages, selectChatOnlineCount } from '../../global/selectors';
import renderText from './helpers/renderText';
import useLang, { LangFn } from '../../hooks/useLang';

View File

@ -11,7 +11,7 @@ import {
getMessageMediaHash,
getMessageMediaThumbDataUri,
getMessageVideo,
} from '../../modules/helpers';
} from '../../global/helpers';
import buildClassName from '../../util/buildClassName';
import useMedia from '../../hooks/useMedia';
import useMediaTransition from '../../hooks/useMediaTransition';

View File

@ -1,5 +1,5 @@
import React, { FC, useCallback } from '../../lib/teact/teact';
import { getActions } from '../../modules';
import { getActions } from '../../global';
import { ApiMessage } from '../../api/types';

View File

@ -2,7 +2,7 @@ import React, {
FC, useCallback, useRef, useEffect, memo,
} from '../../lib/teact/teact';
import { isUserId } from '../../modules/helpers';
import { isUserId } from '../../global/helpers';
import InfiniteScroll from '../ui/InfiniteScroll';
import Checkbox from '../ui/Checkbox';

View File

@ -1,10 +1,10 @@
import React, { FC, memo } from '../../lib/teact/teact';
import { withGlobal } from '../../modules';
import { withGlobal } from '../../global';
import { ApiChat, ApiUser } from '../../api/types';
import { selectChat, selectUser } from '../../modules/selectors';
import { getChatTitle, getUserFirstOrLastName, isUserId } from '../../modules/helpers';
import { selectChat, selectUser } from '../../global/selectors';
import { getChatTitle, getUserFirstOrLastName, isUserId } from '../../global/helpers';
import renderText from './helpers/renderText';
import buildClassName from '../../util/buildClassName';
import useLang from '../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { selectChat, selectIsChatWithSelf, selectUser } from '../../modules/selectors';
import { selectChat, selectIsChatWithSelf, selectUser } from '../../global/selectors';
import {
isUserId,
getUserFirstOrLastName,
@ -9,7 +9,7 @@ import {
isChatBasicGroup,
isChatSuperGroup,
isChatChannel,
} from '../../modules/helpers';
} from '../../global/helpers';
import useLang from '../../hooks/useLang';
import renderText from './helpers/renderText';

View File

@ -2,14 +2,14 @@ import { MouseEvent as ReactMouseEvent } from 'react';
import React, {
FC, useEffect, useCallback, memo,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiUser, ApiTypingStatus, ApiUserStatus } from '../../api/types';
import { GlobalState } from '../../global/types';
import { MediaViewerOrigin } from '../../types';
import { selectChatMessages, selectUser, selectUserStatus } from '../../modules/selectors';
import { getUserFullName, getUserStatus, isUserOnline } from '../../modules/helpers';
import { selectChatMessages, selectUser, selectUserStatus } from '../../global/selectors';
import { getUserFullName, getUserStatus, isUserOnline } from '../../global/helpers';
import renderText from './helpers/renderText';
import useLang from '../../hooks/useLang';

View File

@ -1,17 +1,17 @@
import React, {
FC, useEffect, useCallback, memo, useState,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiUser, ApiChat, ApiUserStatus } from '../../api/types';
import { GlobalState } from '../../global/types';
import { MediaViewerOrigin } from '../../types';
import { IS_TOUCH_ENV } from '../../util/environment';
import { selectChat, selectUser, selectUserStatus } from '../../modules/selectors';
import { selectChat, selectUser, selectUserStatus } from '../../global/selectors';
import {
getUserFullName, getUserStatus, isChatChannel, isUserOnline,
} from '../../modules/helpers';
} from '../../global/helpers';
import renderText from './helpers/renderText';
import { captureEvents, SwipeDirection } from '../../util/captureEvents';
import buildClassName from '../../util/buildClassName';

View File

@ -12,7 +12,7 @@ import {
isUserId,
isChatWithRepliesBot,
isDeletedUser,
} from '../../modules/helpers';
} from '../../global/helpers';
import renderText from './helpers/renderText';
import buildClassName from '../../util/buildClassName';
import { getFirstLetters } from '../../util/textFormat';

View File

@ -1,6 +1,6 @@
import { RefObject } from 'react';
import React, { FC, memo } from '../../lib/teact/teact';
import { getGlobal } from '../../modules';
import { getGlobal } from '../../global';
import { ApiMediaFormat } from '../../api/types';

View File

@ -3,7 +3,7 @@ import { ChangeEvent } from 'react';
import React, {
FC, memo, useCallback, useState,
} from '../../lib/teact/teact';
import { getActions } from '../../modules';
import { getActions } from '../../global';
import { ApiReportReason } from '../../api/types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
import { getActions } from '../../modules';
import { getActions } from '../../global';
import convertPunycode from '../../lib/punycode';
import {

View File

@ -1,8 +1,8 @@
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import useLang from '../../hooks/useLang';
import { selectChatMessage } from '../../modules/selectors';
import { selectChatMessage } from '../../global/selectors';
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
import Modal from '../ui/Modal';

View File

@ -1,18 +1,18 @@
import React, {
FC, memo, useCallback, useEffect, useRef,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiSticker, ApiStickerSet } from '../../api/types';
import { STICKER_SIZE_MODAL } from '../../config';
import {
selectChat, selectCurrentMessageList, selectStickerSet, selectStickerSetByShortName,
} from '../../modules/selectors';
} from '../../global/selectors';
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
import useLang from '../../hooks/useLang';
import renderText from './helpers/renderText';
import { getAllowedAttachmentOptions, getCanPostInChat } from '../../modules/helpers';
import { getAllowedAttachmentOptions, getCanPostInChat } from '../../global/helpers';
import Modal from '../ui/Modal';
import Button from '../ui/Button';

View File

@ -1,10 +1,10 @@
import React, { FC, memo } from '../../lib/teact/teact';
import { withGlobal } from '../../modules';
import { withGlobal } from '../../global';
import { ApiUser, ApiTypingStatus } from '../../api/types';
import { selectUser } from '../../modules/selectors';
import { getUserFirstOrLastName } from '../../modules/helpers';
import { selectUser } from '../../global/selectors';
import { getUserFirstOrLastName } from '../../global/helpers';
import renderText from './helpers/renderText';
import useLang from '../../hooks/useLang';

View File

@ -1,10 +1,10 @@
import React, { FC, useEffect } from '../../lib/teact/teact';
import { getActions, getGlobal, withGlobal } from '../../modules';
import { getActions, getGlobal, withGlobal } from '../../global';
import { ApiMediaFormat } from '../../api/types';
import { GlobalState } from '../../global/types';
import { getChatAvatarHash } from '../../modules/helpers/chats'; // Direct import for better module splitting
import { getChatAvatarHash } from '../../global/helpers/chats'; // Direct import for better module splitting
import useFlag from '../../hooks/useFlag';
import useShowTransition from '../../hooks/useShowTransition';
import { pause } from '../../util/schedulers';
@ -19,7 +19,7 @@ import './UiLoader.scss';
import telegramLogoPath from '../../assets/telegram-logo.svg';
import reactionThumbsPath from '../../assets/reaction-thumbs.png';
import monkeyPath from '../../assets/monkey.svg';
import { selectIsRightColumnShown, selectTheme } from '../../modules/selectors';
import { selectIsRightColumnShown, selectTheme } from '../../global/selectors';
type OwnProps = {
page: 'main' | 'authCode' | 'authPassword' | 'authPhoneNumber' | 'authQrCode';

View File

@ -5,7 +5,7 @@ import { ApiChat, ApiUser } from '../../api/types';
import buildClassName from '../../util/buildClassName';
import Link from '../ui/Link';
import { getActions } from '../../modules';
import { getActions } from '../../global';
type OwnProps = {
className?: string;

View File

@ -6,7 +6,7 @@ import { ObserveFn } from '../../hooks/useIntersectionObserver';
import {
getFirstLinkInMessage, getMessageText,
getMessageWebPage,
} from '../../modules/helpers';
} from '../../global/helpers';
import buildClassName from '../../util/buildClassName';
import trimText from '../../util/trimText';
import renderText from './helpers/renderText';

View File

@ -5,7 +5,7 @@ import {
import { STICKER_SIZE_INLINE_DESKTOP_FACTOR, STICKER_SIZE_INLINE_MOBILE_FACTOR } from '../../../config';
import { IS_SINGLE_COLUMN_LAYOUT, IS_TOUCH_ENV } from '../../../util/environment';
import windowSize from '../../../util/windowSize';
import { getPhotoInlineDimensions, getVideoDimensions } from '../../../modules/helpers';
import { getPhotoInlineDimensions, getVideoDimensions } from '../../../global/helpers';
export const MEDIA_VIEWER_MEDIA_QUERY = '(max-height: 640px)';
export const REM = parseInt(getComputedStyle(document.documentElement).fontSize, 10);

View File

@ -8,7 +8,7 @@ import {
getChatTitle,
getMessageSummaryText,
getUserFullName,
} from '../../../modules/helpers';
} from '../../../global/helpers';
import trimText from '../../../util/trimText';
import { formatCurrency } from '../../../util/formatCurrency';
import { TextPart, renderMessageSummary } from './renderMessageText';

View File

@ -5,7 +5,7 @@ import {
getMessageSummaryText,
getMessageText,
TRUNCATED_SUMMARY_LENGTH,
} from '../../../modules/helpers';
} from '../../../global/helpers';
import { LangFn } from '../../../hooks/useLang';
import renderText from './renderText';
import { renderTextWithEntities, TextPart } from './renderTextWithEntities';

View File

@ -1,6 +1,6 @@
import { MouseEvent } from 'react';
import React from '../../../lib/teact/teact';
import { getActions } from '../../../modules';
import { getActions } from '../../../global';
import { ApiFormattedText, ApiMessageEntity, ApiMessageEntityTypes } from '../../../api/types';
import renderText, { TextFilter } from './renderText';

View File

@ -2,11 +2,11 @@ import {
useCallback, useEffect, useRef, useState,
} from '../../../lib/teact/teact';
import safePlay from '../../../util/safePlay';
import { getActions } from '../../../modules';
import { getActions } from '../../../global';
import useMedia from '../../../hooks/useMedia';
import { ActiveEmojiInteraction } from '../../../global/types';
import useFlag from '../../../hooks/useFlag';
import { selectLocalAnimatedEmojiEffectByName } from '../../../modules/selectors';
import { selectLocalAnimatedEmojiEffectByName } from '../../../global/selectors';
const WIDTH = {
large: 160,

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, memo, useMemo, useState,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { ApiChatFolder } from '../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useRef, useState,
} from '../../lib/teact/teact';
import { getActions, withGlobal } from '../../modules';
import { getActions, withGlobal } from '../../global';
import { LeftColumnContent, SettingsScreens } from '../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useLayoutEffect, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getActions, getGlobal, withGlobal } from '../../../modules';
import { getActions, getGlobal, withGlobal } from '../../../global';
import useLang, { LangFn } from '../../../hooks/useLang';
@ -25,11 +25,11 @@ import {
getMessageSticker,
selectIsChatMuted,
getMessageRoundVideo,
} from '../../../modules/helpers';
} from '../../../global/helpers';
import {
selectChat, selectUser, selectChatMessage, selectOutgoingStatus, selectDraft, selectCurrentMessageList,
selectNotifySettings, selectNotifyExceptions, selectUserStatus,
} from '../../../modules/selectors';
} from '../../../global/selectors';
import { renderActionMessageText } from '../../common/helpers/renderActionMessageText';
import renderText from '../../common/helpers/renderText';
import { fastRaf } from '../../../util/schedulers';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiChatFolder } from '../../../api/types';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useMemo, useEffect,
} from '../../../lib/teact/teact';
import { getActions } from '../../../modules';
import { getActions } from '../../../global';
import { SettingsScreens } from '../../../types';
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';

View File

@ -1,13 +1,13 @@
import React, {
FC, useEffect, useCallback, useMemo, memo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiUser, ApiUserStatus } from '../../../api/types';
import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment';
import { throttle } from '../../../util/schedulers';
import { filterUsersByName, sortUserIds } from '../../../modules/helpers';
import { filterUsersByName, sortUserIds } from '../../../global/helpers';
import useInfiniteScroll from '../../../hooks/useInfiniteScroll';
import useHistoryBack from '../../../hooks/useHistoryBack';

View File

@ -1,12 +1,12 @@
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { withGlobal } from '../../../modules';
import { withGlobal } from '../../../global';
import { ApiChatFolder, ApiSticker } from '../../../api/types';
import { SettingsScreens } from '../../../types';
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';
import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment';
import { selectAnimatedEmoji, selectChatFolder } from '../../../modules/selectors';
import { selectAnimatedEmoji, selectChatFolder } from '../../../global/selectors';
import useLang from '../../../hooks/useLang';
import Button from '../../ui/Button';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ISettings, LeftColumnContent } from '../../../types';
import { ApiChat } from '../../../api/types';
@ -16,8 +16,8 @@ import { formatDateToString } from '../../../util/dateFormat';
import switchTheme from '../../../util/switchTheme';
import { setPermanentWebVersion } from '../../../util/permanentWebVersion';
import { clearWebsync } from '../../../util/websync';
import { selectCurrentMessageList, selectTheme } from '../../../modules/selectors';
import { isChatArchived } from '../../../modules/helpers';
import { selectCurrentMessageList, selectTheme } from '../../../global/selectors';
import { isChatArchived } from '../../../global/helpers';
import useLang from '../../../hooks/useLang';
import { disableHistoryBack } from '../../../hooks/useHistoryBack';
import useConnectionStatus from '../../../hooks/useConnectionStatus';

View File

@ -1,13 +1,13 @@
import React, {
FC, useCallback, useEffect, useMemo, memo,
} from '../../../lib/teact/teact';
import { getActions, getGlobal, withGlobal } from '../../../modules';
import { getActions, getGlobal, withGlobal } from '../../../global';
import { ApiChat } from '../../../api/types';
import { unique } from '../../../util/iteratees';
import { throttle } from '../../../util/schedulers';
import { filterUsersByName, isUserBot, sortChatIds } from '../../../modules/helpers';
import { filterUsersByName, isUserBot, sortChatIds } from '../../../global/helpers';
import useLang from '../../../hooks/useLang';
import useHistoryBack from '../../../hooks/useHistoryBack';

View File

@ -1,7 +1,7 @@
import React, {
FC, useState, useCallback, useEffect, memo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ChatCreationProgress } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { AudioOrigin, LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import {
ApiChat, ApiUser, ApiMessage, ApiMessageOutgoingStatus,
@ -15,8 +15,8 @@ import {
getMessageMediaThumbDataUri,
getMessageVideo,
getMessageRoundVideo,
} from '../../../modules/helpers';
import { selectChat, selectUser } from '../../../modules/selectors';
} from '../../../global/helpers';
import { selectChat, selectUser } from '../../../global/selectors';
import renderText from '../../common/helpers/renderText';
import useMedia from '../../../hooks/useMedia';
import { formatPastTimeShort } from '../../../util/dateFormat';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiChat, ApiMessage } from '../../../api/types';
import { LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { getActions, getGlobal, withGlobal } from '../../../modules';
import { getActions, getGlobal, withGlobal } from '../../../global';
import { ApiChat, ApiMessage } from '../../../api/types';
import { LoadMoreDirection } from '../../../types';
@ -11,7 +11,7 @@ import { unique } from '../../../util/iteratees';
import {
sortChatIds,
filterUsersByName,
} from '../../../modules/helpers';
} from '../../../global/helpers';
import { MEMO_EMPTY_ARRAY } from '../../../util/memo';
import { throttle } from '../../../util/schedulers';
import useLang from '../../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiMessage } from '../../../api/types';
import { LoadMoreDirection } from '../../../types';
@ -12,7 +12,7 @@ import { createMapStateToProps, StateProps } from './helpers/createMapStateToPro
import { formatMonthAndYear, toYearMonth } from '../../../util/dateFormat';
import { getSenderName } from './helpers/getSenderName';
import { throttle } from '../../../util/schedulers';
import { getMessageDocument } from '../../../modules/helpers';
import { getMessageDocument } from '../../../global/helpers';
import useAsyncRendering from '../../right/hooks/useAsyncRendering';
import useLang from '../../../hooks/useLang';
import { useIntersectionObserver } from '../../../hooks/useIntersectionObserver';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useState, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { GlobalSearchContent } from '../../../types';

View File

@ -1,16 +1,16 @@
import React, {
FC, memo,
} from '../../../lib/teact/teact';
import { withGlobal } from '../../../modules';
import { withGlobal } from '../../../global';
import { ApiChat, ApiUser } from '../../../api/types';
import useChatContextActions from '../../../hooks/useChatContextActions';
import useFlag from '../../../hooks/useFlag';
import { isUserId, getPrivateChatUserId, selectIsChatMuted } from '../../../modules/helpers';
import { isUserId, getPrivateChatUserId, selectIsChatMuted } from '../../../global/helpers';
import {
selectChat, selectUser, selectIsChatPinned, selectNotifySettings, selectNotifyExceptions,
} from '../../../modules/selectors';
} from '../../../global/selectors';
import useSelectWithEnter from '../../../hooks/useSelectWithEnter';
import PrivateChatInfo from '../../common/PrivateChatInfo';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { LoadMoreDirection } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useRef,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { LoadMoreDirection, MediaViewerOrigin } from '../../../types';

View File

@ -1,11 +1,11 @@
import React, {
FC, useEffect, useCallback, useRef, memo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiUser } from '../../../api/types';
import { getUserFirstOrLastName } from '../../../modules/helpers';
import { getUserFirstOrLastName } from '../../../global/helpers';
import renderText from '../../common/helpers/renderText';
import { throttle } from '../../../util/schedulers';
import useHorizontalScroll from '../../../hooks/useHorizontalScroll';

View File

@ -4,7 +4,7 @@ import {
} from '../../../../api/types';
import { ISettings } from '../../../../types';
import { selectChat, selectTheme } from '../../../../modules/selectors';
import { selectChat, selectTheme } from '../../../../global/selectors';
export type StateProps = {
theme: ISettings['theme'];

View File

@ -4,7 +4,7 @@ import {
getSenderTitle,
isUserId,
isChatGroup,
} from '../../../../modules/helpers';
} from '../../../../global/helpers';
import { LangFn } from '../../../../hooks/useLang';
export function getSenderName(

View File

@ -1,11 +1,11 @@
import React, {
FC, useMemo, useState, memo, useRef, useCallback, useEffect,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiUser } from '../../../api/types';
import { filterUsersByName, getUserFullName } from '../../../modules/helpers';
import { filterUsersByName, getUserFullName } from '../../../global/helpers';
import { unique } from '../../../util/iteratees';
import useLang from '../../../hooks/useLang';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens, ISettings } from '../../../types';

View File

@ -2,14 +2,14 @@ import { ChangeEvent } from 'react';
import React, {
FC, useState, useCallback, memo, useEffect, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiMediaFormat } from '../../../api/types';
import { ProfileEditProgress, SettingsScreens } from '../../../types';
import { throttle } from '../../../util/schedulers';
import { selectUser } from '../../../modules/selectors';
import { getChatAvatarHash } from '../../../modules/helpers';
import { selectUser } from '../../../global/selectors';
import { getChatAvatarHash } from '../../../global/helpers';
import useMedia from '../../../hooks/useMedia';
import useLang from '../../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, {
FC, useCallback, memo, useRef, useState,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens, ISettings, TimeFormat } from '../../../types';
import { ApiSticker, ApiStickerSet } from '../../../api/types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useEffect, useCallback, useRef,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens, ThemeKey, UPLOADING_WALLPAPER_SLUG } from '../../../types';
import { ApiWallpaper } from '../../../api/types';
@ -10,7 +10,7 @@ import { DARK_THEME_PATTERN_COLOR, DEFAULT_PATTERN_COLOR } from '../../../config
import { throttle } from '../../../util/schedulers';
import { openSystemFilesDialog } from '../../../util/systemFilesDialog';
import { getAverageColor, getPatternColor, rgb2hex } from '../../../util/colors';
import { selectTheme } from '../../../modules/selectors';
import { selectTheme } from '../../../global/selectors';
import useLang from '../../../hooks/useLang';
import useHistoryBack from '../../../hooks/useHistoryBack';

View File

@ -2,7 +2,7 @@ import { ChangeEvent, MutableRefObject, RefObject } from 'react';
import React, {
FC, memo, useCallback, useEffect, useRef, useState,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens, ThemeKey } from '../../../types';
@ -11,7 +11,7 @@ import {
getPatternColor, hex2rgb, hsb2rgb, rgb2hex, rgb2hsb,
} from '../../../util/colors';
import { captureEvents, RealTouchEvent } from '../../../util/captureEvents';
import { selectTheme } from '../../../modules/selectors';
import { selectTheme } from '../../../global/selectors';
import useFlag from '../../../hooks/useFlag';
import buildClassName from '../../../util/buildClassName';
import useHistoryBack from '../../../hooks/useHistoryBack';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { getActions } from '../../../modules';
import { getActions } from '../../../global';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useState,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ISettings, LangCode, SettingsScreens } from '../../../types';
import { ApiLanguage } from '../../../api/types';

View File

@ -1,10 +1,10 @@
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens } from '../../../types';
import { ApiUser } from '../../../api/types';
import { selectUser } from '../../../modules/selectors';
import { selectUser } from '../../../global/selectors';
import useLang from '../../../hooks/useLang';
import useHistoryBack from '../../../hooks/useHistoryBack';

View File

@ -3,7 +3,7 @@ import useDebounce from '../../../hooks/useDebounce';
import React, {
FC, memo, useCallback, useEffect,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens } from '../../../types';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { PrivacyVisibility, SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiSession } from '../../../api/types';
import { SettingsScreens } from '../../../types';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiChat, ApiCountryCode, ApiUser } from '../../../api/types';
import { SettingsScreens } from '../../../types';
@ -10,7 +10,7 @@ import { CHAT_HEIGHT_PX } from '../../../config';
import { formatPhoneNumberWithCode } from '../../../util/phoneNumber';
import {
getChatTitle, getUserFullName, isUserId,
} from '../../../modules/helpers';
} from '../../../global/helpers';
import renderText from '../../common/helpers/renderText';
import buildClassName from '../../../util/buildClassName';
import useLang from '../../../hooks/useLang';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useMemo,
} from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { ApiChat, ApiUser } from '../../../api/types';
import { ApiPrivacySettings, SettingsScreens } from '../../../types';

View File

@ -1,14 +1,14 @@
import React, {
FC, memo, useCallback, useMemo, useState,
} from '../../../lib/teact/teact';
import { getActions, getGlobal, withGlobal } from '../../../modules';
import { getActions, getGlobal, withGlobal } from '../../../global';
import { GlobalState } from '../../../global/types';
import { ApiPrivacySettings, SettingsScreens } from '../../../types';
import { ALL_FOLDER_ID, ARCHIVED_FOLDER_ID } from '../../../config';
import { unique } from '../../../util/iteratees';
import { filterChatsByName, isChatGroup, isUserId } from '../../../modules/helpers';
import { filterChatsByName, isChatGroup, isUserId } from '../../../global/helpers';
import useLang from '../../../hooks/useLang';
import useHistoryBack from '../../../hooks/useHistoryBack';
import { useFolderManagerForOrderedIds } from '../../../hooks/useFolderManager';

View File

@ -1,5 +1,5 @@
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../modules';
import { getActions, withGlobal } from '../../../global';
import { SettingsScreens } from '../../../types';
import { ApiAvailableReaction } from '../../../api/types';

View File

@ -1,14 +1,14 @@
import React, {
FC, memo, useMemo, useCallback,
} from '../../../../lib/teact/teact';
import { getGlobal } from '../../../../modules';
import { getGlobal } from '../../../../global';
import { SettingsScreens } from '../../../../types';
import { unique } from '../../../../util/iteratees';
import { ALL_FOLDER_ID, ARCHIVED_FOLDER_ID } from '../../../../config';
import { filterChatsByName } from '../../../../modules/helpers';
import { filterChatsByName } from '../../../../global/helpers';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';
import { useFolderManagerForOrderedIds } from '../../../../hooks/useFolderManager';

View File

@ -2,7 +2,7 @@ import React, {
FC, useCallback, useRef, useEffect, memo,
} from '../../../../lib/teact/teact';
import { isUserId } from '../../../../modules/helpers';
import { isUserId } from '../../../../global/helpers';
import {
INCLUDED_CHAT_TYPES,
EXCLUDED_CHAT_TYPES,

View File

@ -1,13 +1,13 @@
import React, {
FC, memo, useCallback, useEffect, useMemo, useState,
} from '../../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../../modules';
import { getActions, withGlobal } from '../../../../global';
import { SettingsScreens } from '../../../../types';
import { STICKER_SIZE_FOLDER_SETTINGS } from '../../../../config';
import { findIntersectionWithSet } from '../../../../util/iteratees';
import { isUserId } from '../../../../modules/helpers';
import { isUserId } from '../../../../global/helpers';
import getAnimationData from '../../../common/helpers/animatedAssets';
import {
EXCLUDED_CHAT_TYPES,

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useMemo, useCallback, useState, useEffect,
} from '../../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../../modules';
import { getActions, withGlobal } from '../../../../global';
import { ApiChatFolder } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';
@ -9,7 +9,7 @@ import { SettingsScreens } from '../../../../types';
import { STICKER_SIZE_FOLDER_SETTINGS } from '../../../../config';
import { throttle } from '../../../../util/schedulers';
import getAnimationData from '../../../common/helpers/animatedAssets';
import { getFolderDescriptionText } from '../../../../modules/helpers';
import { getFolderDescriptionText } from '../../../../global/helpers';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';
import { useFolderManagerForChatsCount } from '../../../../hooks/useFolderManager';

View File

@ -1,7 +1,7 @@
import React, {
FC, memo, useCallback, useEffect,
} from '../../../../lib/teact/teact';
import { getActions, withGlobal } from '../../../../modules';
import { getActions, withGlobal } from '../../../../global';
import { GlobalState } from '../../../../global/types';
import { SettingsScreens } from '../../../../types';

View File

@ -1,10 +1,10 @@
import React, { FC, memo } from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../modules';
import { withGlobal } from '../../../../global';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';
import { selectAnimatedEmoji } from '../../../../modules/selectors';
import { selectAnimatedEmoji } from '../../../../global/selectors';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';

View File

@ -1,13 +1,13 @@
import React, {
FC, memo, useEffect, useRef, useState,
} from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../modules';
import { withGlobal } from '../../../../global';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';
import { IS_SINGLE_COLUMN_LAYOUT, IS_TOUCH_ENV } from '../../../../util/environment';
import { selectAnimatedEmoji } from '../../../../modules/selectors';
import { selectAnimatedEmoji } from '../../../../global/selectors';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';

View File

@ -1,10 +1,10 @@
import React, { FC, memo } from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../modules';
import { withGlobal } from '../../../../global';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';
import { selectAnimatedEmoji } from '../../../../modules/selectors';
import { selectAnimatedEmoji } from '../../../../global/selectors';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';

View File

@ -1,13 +1,13 @@
import React, {
FC, memo, useEffect, useRef, useState,
} from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../modules';
import { withGlobal } from '../../../../global';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';
import { IS_SINGLE_COLUMN_LAYOUT, IS_TOUCH_ENV } from '../../../../util/environment';
import { selectAnimatedEmoji } from '../../../../modules/selectors';
import { selectAnimatedEmoji } from '../../../../global/selectors';
import useFlag from '../../../../hooks/useFlag';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';

View File

@ -1,10 +1,10 @@
import React, { FC, memo } from '../../../../lib/teact/teact';
import { withGlobal } from '../../../../modules';
import { withGlobal } from '../../../../global';
import { ApiSticker } from '../../../../api/types';
import { SettingsScreens } from '../../../../types';
import { selectAnimatedEmoji } from '../../../../modules/selectors';
import { selectAnimatedEmoji } from '../../../../global/selectors';
import useLang from '../../../../hooks/useLang';
import useHistoryBack from '../../../../hooks/useHistoryBack';

Some files were not shown because too many files have changed in this diff Show More