[Refactoring] Rename modules/* -> global/*
This commit is contained in:
parent
b025fccf0f
commit
e204fa36a5
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, useEffect } from './lib/teact/teact';
|
import React, { FC, useEffect } from './lib/teact/teact';
|
||||||
import { getActions, withGlobal } from './modules';
|
import { getActions, withGlobal } from './global';
|
||||||
|
|
||||||
import { GlobalState } from './global/types';
|
import { GlobalState } from './global/types';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { getActions, getGlobal } from '../modules';
|
import { getActions, getGlobal } from '../global';
|
||||||
|
|
||||||
import { DEBUG } from '../config';
|
import { DEBUG } from '../config';
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import React, { FC, useEffect, memo } from '../../lib/teact/teact';
|
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 { GlobalState } from '../../global/types';
|
||||||
|
|
||||||
import '../../modules/actions/initial';
|
import '../../global/actions/initial';
|
||||||
import { pick } from '../../util/iteratees';
|
import { pick } from '../../util/iteratees';
|
||||||
import { PLATFORM_ENV } from '../../util/environment';
|
import { PLATFORM_ENV } from '../../util/environment';
|
||||||
import windowSize from '../../util/windowSize';
|
import windowSize from '../../util/windowSize';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { FormEvent } from 'react';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useState, useEffect, useCallback, memo, useRef,
|
FC, useState, useEffect, useCallback, memo, useRef,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
|
|
||||||
import { IS_TOUCH_ENV } from '../../util/environment';
|
import { IS_TOUCH_ENV } from '../../util/environment';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useState,
|
FC, memo, useCallback, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import monkeyPath from '../../assets/monkey.svg';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useLayoutEffect, useRef, useState,
|
FC, memo, useCallback, useEffect, useLayoutEffect, useRef, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
import { LangCode } from '../../types';
|
import { LangCode } from '../../types';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import QrCreator from 'qr-creator';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useEffect, useRef, memo, useCallback,
|
FC, useEffect, useRef, memo, useCallback,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
import { LangCode } from '../../types';
|
import { LangCode } from '../../types';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { ChangeEvent } from 'react';
|
import { ChangeEvent } from 'react';
|
||||||
import React, { FC, useState, memo } from '../../lib/teact/teact';
|
import React, { FC, useState, memo } from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useState, memo, useCallback, useRef,
|
FC, useState, memo, useCallback, useRef,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../modules';
|
import { withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiCountryCode } from '../../api/types';
|
import { ApiCountryCode } from '../../api/types';
|
||||||
|
|
||||||
|
|||||||
@ -2,11 +2,11 @@ import { GroupCallParticipant } from '../../lib/secret-sauce';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useEffect,
|
FC, memo, useEffect,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiGroupCall } from '../../api/types';
|
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 buildClassName from '../../util/buildClassName';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import React, { FC, memo, useState } from '../../lib/teact/teact';
|
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 ConfirmDialog from '../ui/ConfirmDialog';
|
||||||
import Checkbox from '../ui/Checkbox';
|
import Checkbox from '../ui/Checkbox';
|
||||||
import { selectCallFallbackChannelTitle } from '../../modules/selectors/calls';
|
import { selectCallFallbackChannelTitle } from '../../global/selectors/calls';
|
||||||
import { getUserFullName } from '../../modules/helpers';
|
import { getUserFullName } from '../../global/helpers';
|
||||||
import { selectCurrentMessageList, selectUser } from '../../modules/selectors';
|
import { selectCurrentMessageList, selectUser } from '../../global/selectors';
|
||||||
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
|
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
|
||||||
|
|
||||||
export type OwnProps = {
|
export type OwnProps = {
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import {
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useMemo, useRef, useState,
|
FC, memo, useCallback, useEffect, useMemo, useRef, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
import '../../../modules/actions/calls';
|
import '../../../global/actions/calls';
|
||||||
|
|
||||||
import { IAnchorPosition } from '../../../types';
|
import { IAnchorPosition } from '../../../types';
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ import {
|
|||||||
selectGroupCall,
|
selectGroupCall,
|
||||||
selectGroupCallParticipant,
|
selectGroupCallParticipant,
|
||||||
selectIsAdminInActiveGroupCall,
|
selectIsAdminInActiveGroupCall,
|
||||||
} from '../../../modules/selectors/calls';
|
} from '../../../global/selectors/calls';
|
||||||
import useFlag from '../../../hooks/useFlag';
|
import useFlag from '../../../hooks/useFlag';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -2,12 +2,12 @@ import { GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useMemo, useRef,
|
FC, memo, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../modules';
|
import { withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiUser } from '../../../api/types';
|
import { ApiChat, ApiUser } from '../../../api/types';
|
||||||
|
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
import { selectChat, selectUser } from '../../../modules/selectors';
|
import { selectChat, selectUser } from '../../../global/selectors';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import { GROUP_CALL_DEFAULT_VOLUME, GROUP_CALL_VOLUME_MULTIPLIER } from '../../../config';
|
import { GROUP_CALL_DEFAULT_VOLUME, GROUP_CALL_VOLUME_MULTIPLIER } from '../../../config';
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import { GroupCallParticipant as TypeGroupCallParticipant } from '../../../lib/secret-sauce';
|
import { GroupCallParticipant as TypeGroupCallParticipant } from '../../../lib/secret-sauce';
|
||||||
import React, { FC, memo, useMemo } from '../../../lib/teact/teact';
|
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 useLang from '../../../hooks/useLang';
|
||||||
import { selectActiveGroupCall } from '../../../modules/selectors/calls';
|
import { selectActiveGroupCall } from '../../../global/selectors/calls';
|
||||||
import useInfiniteScroll from '../../../hooks/useInfiniteScroll';
|
import useInfiniteScroll from '../../../hooks/useInfiniteScroll';
|
||||||
|
|
||||||
import GroupCallParticipant from './GroupCallParticipant';
|
import GroupCallParticipant from './GroupCallParticipant';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { GroupCallParticipant } from '../../../lib/secret-sauce';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useState,
|
FC, memo, useCallback, useEffect, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { IAnchorPosition } from '../../../types';
|
import { IAnchorPosition } from '../../../types';
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ import buildClassName from '../../../util/buildClassName';
|
|||||||
import useThrottle from '../../../hooks/useThrottle';
|
import useThrottle from '../../../hooks/useThrottle';
|
||||||
import useFlag from '../../../hooks/useFlag';
|
import useFlag from '../../../hooks/useFlag';
|
||||||
import useLang from '../../../hooks/useLang';
|
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 { GROUP_CALL_DEFAULT_VOLUME, GROUP_CALL_VOLUME_MULTIPLIER } from '../../../config';
|
||||||
|
|
||||||
import Menu from '../../ui/Menu';
|
import Menu from '../../ui/Menu';
|
||||||
|
|||||||
@ -2,9 +2,9 @@ import { GroupCallParticipant } from '../../../lib/secret-sauce';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useState,
|
FC, memo, useCallback, useMemo, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../modules';
|
import { withGlobal } from '../../../global';
|
||||||
import GroupCallParticipantVideo from './GroupCallParticipantVideo';
|
import GroupCallParticipantVideo from './GroupCallParticipantVideo';
|
||||||
import { selectActiveGroupCall } from '../../../modules/selectors/calls';
|
import { selectActiveGroupCall } from '../../../global/selectors/calls';
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
|
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import { getUserStreams, GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../../../lib/secret-sauce';
|
import { getUserStreams, GroupCallParticipant as TypeGroupCallParticipant, THRESHOLD } from '../../../lib/secret-sauce';
|
||||||
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../modules';
|
import { withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiUser } from '../../../api/types';
|
import { ApiChat, ApiUser } from '../../../api/types';
|
||||||
|
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
import { selectChat, selectUser } from '../../../modules/selectors';
|
import { selectChat, selectUser } from '../../../global/selectors';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import { ENABLE_THUMBNAIL_VIDEO } from '../../../config';
|
import { ENABLE_THUMBNAIL_VIDEO } from '../../../config';
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useMemo,
|
FC, memo, useCallback, useEffect, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiGroupCall, ApiUser } from '../../../api/types';
|
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 buildClassName from '../../../util/buildClassName';
|
||||||
import { selectChat } from '../../../modules/selectors';
|
import { selectChat } from '../../../global/selectors';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
|
|
||||||
import Button from '../../ui/Button';
|
import Button from '../../ui/Button';
|
||||||
|
|||||||
@ -2,12 +2,12 @@ import { GroupCallConnectionState } from '../../../lib/secret-sauce';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useEffect, useMemo, useRef, useState,
|
FC, memo, useEffect, useMemo, useRef, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
import { vibrateShort } from '../../../util/vibrate';
|
import { vibrateShort } from '../../../util/vibrate';
|
||||||
import usePrevious from '../../../hooks/usePrevious';
|
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 useLang from '../../../hooks/useLang';
|
||||||
|
|
||||||
import AnimatedIcon from '../../common/AnimatedIcon';
|
import AnimatedIcon from '../../common/AnimatedIcon';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState,
|
FC, memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ApiAudio, ApiMediaFormat, ApiMessage, ApiVoice,
|
ApiAudio, ApiMediaFormat, ApiMessage, ApiVoice,
|
||||||
@ -17,7 +17,7 @@ import {
|
|||||||
getMessageMediaHash,
|
getMessageMediaHash,
|
||||||
isMessageLocal,
|
isMessageLocal,
|
||||||
isOwnMessage,
|
isOwnMessage,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import { MAX_EMPTY_WAVEFORM_POINTS, renderWaveform } from './helpers/waveform';
|
import { MAX_EMPTY_WAVEFORM_POINTS, renderWaveform } from './helpers/waveform';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import {
|
|||||||
isChatWithRepliesBot,
|
isChatWithRepliesBot,
|
||||||
isDeletedUser,
|
isDeletedUser,
|
||||||
isUserOnline,
|
isUserOnline,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import { getFirstLetters } from '../../util/textFormat';
|
import { getFirstLetters } from '../../util/textFormat';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect,
|
FC, memo, useCallback, useEffect,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
import { ApiChat, ApiCountryCode, ApiUser } from '../../api/types';
|
import { ApiChat, ApiCountryCode, ApiUser } from '../../api/types';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
selectChat, selectNotifyExceptions, selectNotifySettings, selectUser,
|
selectChat, selectNotifyExceptions, selectNotifySettings, selectUser,
|
||||||
} from '../../modules/selectors';
|
} from '../../global/selectors';
|
||||||
import {
|
import {
|
||||||
getChatDescription, getChatLink, getHasAdminRight, isChatChannel, isUserId, isUserRightBanned, selectIsChatMuted,
|
getChatDescription, getChatLink, getHasAdminRight, isChatChannel, isUserId, isUserRightBanned, selectIsChatMuted,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import { copyTextToClipboard } from '../../util/clipboard';
|
import { copyTextToClipboard } from '../../util/clipboard';
|
||||||
import { formatPhoneNumberWithCode } from '../../util/phoneNumber';
|
import { formatPhoneNumberWithCode } from '../../util/phoneNumber';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, useCallback } from '../../lib/teact/teact';
|
import React, { FC, useCallback } from '../../lib/teact/teact';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import useInfiniteScroll from '../../hooks/useInfiniteScroll';
|
|||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
import useKeyboardListNavigation from '../../hooks/useKeyboardListNavigation';
|
import useKeyboardListNavigation from '../../hooks/useKeyboardListNavigation';
|
||||||
import useInputFocusOnOpen from '../../hooks/useInputFocusOnOpen';
|
import useInputFocusOnOpen from '../../hooks/useInputFocusOnOpen';
|
||||||
import { isUserId } from '../../modules/helpers';
|
import { isUserId } from '../../global/helpers';
|
||||||
|
|
||||||
import Loading from '../ui/Loading';
|
import Loading from '../ui/Loading';
|
||||||
import Modal from '../ui/Modal';
|
import Modal from '../ui/Modal';
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
|
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 { ApiChat } from '../../api/types';
|
||||||
|
|
||||||
import { selectIsChatWithSelf, selectUser } from '../../modules/selectors';
|
import { selectIsChatWithSelf, selectUser } from '../../global/selectors';
|
||||||
import {
|
import {
|
||||||
isUserId,
|
isUserId,
|
||||||
isUserBot,
|
isUserBot,
|
||||||
@ -13,7 +13,7 @@ import {
|
|||||||
isChatSuperGroup,
|
isChatSuperGroup,
|
||||||
isChatChannel,
|
isChatChannel,
|
||||||
getChatTitle,
|
getChatTitle,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
|
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 { ApiMessage } from '../../api/types';
|
||||||
import { IAlbum } from '../../types';
|
import { IAlbum } from '../../types';
|
||||||
@ -9,14 +9,14 @@ import {
|
|||||||
selectChat,
|
selectChat,
|
||||||
selectCurrentMessageList,
|
selectCurrentMessageList,
|
||||||
selectUser,
|
selectUser,
|
||||||
} from '../../modules/selectors';
|
} from '../../global/selectors';
|
||||||
import {
|
import {
|
||||||
isUserId,
|
isUserId,
|
||||||
getUserFirstOrLastName,
|
getUserFirstOrLastName,
|
||||||
getPrivateChatUserId,
|
getPrivateChatUserId,
|
||||||
isChatBasicGroup,
|
isChatBasicGroup,
|
||||||
isChatSuperGroup,
|
isChatSuperGroup,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useCallback, memo, useRef, useEffect, useState,
|
FC, useCallback, memo, useRef, useEffect, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
import { ApiMessage } from '../../api/types';
|
import { ApiMessage } from '../../api/types';
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ import {
|
|||||||
getMessageMediaHash,
|
getMessageMediaHash,
|
||||||
getMessageMediaThumbDataUri,
|
getMessageMediaThumbDataUri,
|
||||||
isMessageDocumentVideo,
|
isMessageDocumentVideo,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import { ObserveFn, useIsIntersecting } from '../../hooks/useIntersectionObserver';
|
import { ObserveFn, useIsIntersecting } from '../../hooks/useIntersectionObserver';
|
||||||
import useMediaWithLoadProgress from '../../hooks/useMediaWithLoadProgress';
|
import useMediaWithLoadProgress from '../../hooks/useMediaWithLoadProgress';
|
||||||
import useMedia from '../../hooks/useMedia';
|
import useMedia from '../../hooks/useMedia';
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import {
|
|||||||
isActionMessage,
|
isActionMessage,
|
||||||
getSenderTitle,
|
getSenderTitle,
|
||||||
getMessageRoundVideo,
|
getMessageRoundVideo,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import { getPictogramDimensions } from './helpers/mediaDimensions';
|
import { getPictogramDimensions } from './helpers/mediaDimensions';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { ApiGroupCall } from '../../api/types';
|
|||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
|
|
||||||
import Link from '../ui/Link';
|
import Link from '../ui/Link';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { MouseEvent as ReactMouseEvent } from 'react';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useEffect, useCallback, memo,
|
FC, useEffect, useCallback, memo,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiTypingStatus } from '../../api/types';
|
import { ApiChat, ApiTypingStatus } from '../../api/types';
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
@ -12,8 +12,8 @@ import {
|
|||||||
getChatTypeString,
|
getChatTypeString,
|
||||||
getChatTitle,
|
getChatTitle,
|
||||||
isChatSuperGroup,
|
isChatSuperGroup,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import { selectChat, selectChatMessages, selectChatOnlineCount } from '../../modules/selectors';
|
import { selectChat, selectChatMessages, selectChatOnlineCount } from '../../global/selectors';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import useLang, { LangFn } from '../../hooks/useLang';
|
import useLang, { LangFn } from '../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import {
|
|||||||
getMessageMediaHash,
|
getMessageMediaHash,
|
||||||
getMessageMediaThumbDataUri,
|
getMessageMediaThumbDataUri,
|
||||||
getMessageVideo,
|
getMessageVideo,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
import useMedia from '../../hooks/useMedia';
|
import useMedia from '../../hooks/useMedia';
|
||||||
import useMediaTransition from '../../hooks/useMediaTransition';
|
import useMediaTransition from '../../hooks/useMediaTransition';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, useCallback } from '../../lib/teact/teact';
|
import React, { FC, useCallback } from '../../lib/teact/teact';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
import { ApiMessage } from '../../api/types';
|
import { ApiMessage } from '../../api/types';
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import React, {
|
|||||||
FC, useCallback, useRef, useEffect, memo,
|
FC, useCallback, useRef, useEffect, memo,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
|
|
||||||
import { isUserId } from '../../modules/helpers';
|
import { isUserId } from '../../global/helpers';
|
||||||
|
|
||||||
import InfiniteScroll from '../ui/InfiniteScroll';
|
import InfiniteScroll from '../ui/InfiniteScroll';
|
||||||
import Checkbox from '../ui/Checkbox';
|
import Checkbox from '../ui/Checkbox';
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, memo } from '../../lib/teact/teact';
|
import React, { FC, memo } from '../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../modules';
|
import { withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiUser } from '../../api/types';
|
import { ApiChat, ApiUser } from '../../api/types';
|
||||||
|
|
||||||
import { selectChat, selectUser } from '../../modules/selectors';
|
import { selectChat, selectUser } from '../../global/selectors';
|
||||||
import { getChatTitle, getUserFirstOrLastName, isUserId } from '../../modules/helpers';
|
import { getChatTitle, getUserFirstOrLastName, isUserId } from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
|
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 {
|
import {
|
||||||
isUserId,
|
isUserId,
|
||||||
getUserFirstOrLastName,
|
getUserFirstOrLastName,
|
||||||
@ -9,7 +9,7 @@ import {
|
|||||||
isChatBasicGroup,
|
isChatBasicGroup,
|
||||||
isChatSuperGroup,
|
isChatSuperGroup,
|
||||||
isChatChannel,
|
isChatChannel,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
|
|
||||||
|
|||||||
@ -2,14 +2,14 @@ import { MouseEvent as ReactMouseEvent } from 'react';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useEffect, useCallback, memo,
|
FC, useEffect, useCallback, memo,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiUser, ApiTypingStatus, ApiUserStatus } from '../../api/types';
|
import { ApiUser, ApiTypingStatus, ApiUserStatus } from '../../api/types';
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
import { MediaViewerOrigin } from '../../types';
|
import { MediaViewerOrigin } from '../../types';
|
||||||
|
|
||||||
import { selectChatMessages, selectUser, selectUserStatus } from '../../modules/selectors';
|
import { selectChatMessages, selectUser, selectUserStatus } from '../../global/selectors';
|
||||||
import { getUserFullName, getUserStatus, isUserOnline } from '../../modules/helpers';
|
import { getUserFullName, getUserStatus, isUserOnline } from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useEffect, useCallback, memo, useState,
|
FC, useEffect, useCallback, memo, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiUser, ApiChat, ApiUserStatus } from '../../api/types';
|
import { ApiUser, ApiChat, ApiUserStatus } from '../../api/types';
|
||||||
import { GlobalState } from '../../global/types';
|
import { GlobalState } from '../../global/types';
|
||||||
import { MediaViewerOrigin } from '../../types';
|
import { MediaViewerOrigin } from '../../types';
|
||||||
|
|
||||||
import { IS_TOUCH_ENV } from '../../util/environment';
|
import { IS_TOUCH_ENV } from '../../util/environment';
|
||||||
import { selectChat, selectUser, selectUserStatus } from '../../modules/selectors';
|
import { selectChat, selectUser, selectUserStatus } from '../../global/selectors';
|
||||||
import {
|
import {
|
||||||
getUserFullName, getUserStatus, isChatChannel, isUserOnline,
|
getUserFullName, getUserStatus, isChatChannel, isUserOnline,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import { captureEvents, SwipeDirection } from '../../util/captureEvents';
|
import { captureEvents, SwipeDirection } from '../../util/captureEvents';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import {
|
|||||||
isUserId,
|
isUserId,
|
||||||
isChatWithRepliesBot,
|
isChatWithRepliesBot,
|
||||||
isDeletedUser,
|
isDeletedUser,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
import { getFirstLetters } from '../../util/textFormat';
|
import { getFirstLetters } from '../../util/textFormat';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { RefObject } from 'react';
|
import { RefObject } from 'react';
|
||||||
import React, { FC, memo } from '../../lib/teact/teact';
|
import React, { FC, memo } from '../../lib/teact/teact';
|
||||||
import { getGlobal } from '../../modules';
|
import { getGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiMediaFormat } from '../../api/types';
|
import { ApiMediaFormat } from '../../api/types';
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { ChangeEvent } from 'react';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useState,
|
FC, memo, useCallback, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
import { ApiReportReason } from '../../api/types';
|
import { ApiReportReason } from '../../api/types';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
|
import React, { FC, memo, useCallback } from '../../lib/teact/teact';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
import convertPunycode from '../../lib/punycode';
|
import convertPunycode from '../../lib/punycode';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
import React, { FC, useCallback, memo } from '../../lib/teact/teact';
|
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 useLang from '../../hooks/useLang';
|
||||||
import { selectChatMessage } from '../../modules/selectors';
|
import { selectChatMessage } from '../../global/selectors';
|
||||||
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
|
import useCurrentOrPrev from '../../hooks/useCurrentOrPrev';
|
||||||
|
|
||||||
import Modal from '../ui/Modal';
|
import Modal from '../ui/Modal';
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useRef,
|
FC, memo, useCallback, useEffect, useRef,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiSticker, ApiStickerSet } from '../../api/types';
|
import { ApiSticker, ApiStickerSet } from '../../api/types';
|
||||||
|
|
||||||
import { STICKER_SIZE_MODAL } from '../../config';
|
import { STICKER_SIZE_MODAL } from '../../config';
|
||||||
import {
|
import {
|
||||||
selectChat, selectCurrentMessageList, selectStickerSet, selectStickerSetByShortName,
|
selectChat, selectCurrentMessageList, selectStickerSet, selectStickerSetByShortName,
|
||||||
} from '../../modules/selectors';
|
} from '../../global/selectors';
|
||||||
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
|
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import { getAllowedAttachmentOptions, getCanPostInChat } from '../../modules/helpers';
|
import { getAllowedAttachmentOptions, getCanPostInChat } from '../../global/helpers';
|
||||||
|
|
||||||
import Modal from '../ui/Modal';
|
import Modal from '../ui/Modal';
|
||||||
import Button from '../ui/Button';
|
import Button from '../ui/Button';
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, memo } from '../../lib/teact/teact';
|
import React, { FC, memo } from '../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../modules';
|
import { withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiUser, ApiTypingStatus } from '../../api/types';
|
import { ApiUser, ApiTypingStatus } from '../../api/types';
|
||||||
|
|
||||||
import { selectUser } from '../../modules/selectors';
|
import { selectUser } from '../../global/selectors';
|
||||||
import { getUserFirstOrLastName } from '../../modules/helpers';
|
import { getUserFirstOrLastName } from '../../global/helpers';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, useEffect } from '../../lib/teact/teact';
|
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 { ApiMediaFormat } from '../../api/types';
|
||||||
import { GlobalState } from '../../global/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 useFlag from '../../hooks/useFlag';
|
||||||
import useShowTransition from '../../hooks/useShowTransition';
|
import useShowTransition from '../../hooks/useShowTransition';
|
||||||
import { pause } from '../../util/schedulers';
|
import { pause } from '../../util/schedulers';
|
||||||
@ -19,7 +19,7 @@ import './UiLoader.scss';
|
|||||||
import telegramLogoPath from '../../assets/telegram-logo.svg';
|
import telegramLogoPath from '../../assets/telegram-logo.svg';
|
||||||
import reactionThumbsPath from '../../assets/reaction-thumbs.png';
|
import reactionThumbsPath from '../../assets/reaction-thumbs.png';
|
||||||
import monkeyPath from '../../assets/monkey.svg';
|
import monkeyPath from '../../assets/monkey.svg';
|
||||||
import { selectIsRightColumnShown, selectTheme } from '../../modules/selectors';
|
import { selectIsRightColumnShown, selectTheme } from '../../global/selectors';
|
||||||
|
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
page: 'main' | 'authCode' | 'authPassword' | 'authPhoneNumber' | 'authQrCode';
|
page: 'main' | 'authCode' | 'authPassword' | 'authPhoneNumber' | 'authQrCode';
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { ApiChat, ApiUser } from '../../api/types';
|
|||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
|
|
||||||
import Link from '../ui/Link';
|
import Link from '../ui/Link';
|
||||||
import { getActions } from '../../modules';
|
import { getActions } from '../../global';
|
||||||
|
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { ObserveFn } from '../../hooks/useIntersectionObserver';
|
|||||||
import {
|
import {
|
||||||
getFirstLinkInMessage, getMessageText,
|
getFirstLinkInMessage, getMessageText,
|
||||||
getMessageWebPage,
|
getMessageWebPage,
|
||||||
} from '../../modules/helpers';
|
} from '../../global/helpers';
|
||||||
import buildClassName from '../../util/buildClassName';
|
import buildClassName from '../../util/buildClassName';
|
||||||
import trimText from '../../util/trimText';
|
import trimText from '../../util/trimText';
|
||||||
import renderText from './helpers/renderText';
|
import renderText from './helpers/renderText';
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
import { STICKER_SIZE_INLINE_DESKTOP_FACTOR, STICKER_SIZE_INLINE_MOBILE_FACTOR } from '../../../config';
|
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 { IS_SINGLE_COLUMN_LAYOUT, IS_TOUCH_ENV } from '../../../util/environment';
|
||||||
import windowSize from '../../../util/windowSize';
|
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 MEDIA_VIEWER_MEDIA_QUERY = '(max-height: 640px)';
|
||||||
export const REM = parseInt(getComputedStyle(document.documentElement).fontSize, 10);
|
export const REM = parseInt(getComputedStyle(document.documentElement).fontSize, 10);
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import {
|
|||||||
getChatTitle,
|
getChatTitle,
|
||||||
getMessageSummaryText,
|
getMessageSummaryText,
|
||||||
getUserFullName,
|
getUserFullName,
|
||||||
} from '../../../modules/helpers';
|
} from '../../../global/helpers';
|
||||||
import trimText from '../../../util/trimText';
|
import trimText from '../../../util/trimText';
|
||||||
import { formatCurrency } from '../../../util/formatCurrency';
|
import { formatCurrency } from '../../../util/formatCurrency';
|
||||||
import { TextPart, renderMessageSummary } from './renderMessageText';
|
import { TextPart, renderMessageSummary } from './renderMessageText';
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
getMessageSummaryText,
|
getMessageSummaryText,
|
||||||
getMessageText,
|
getMessageText,
|
||||||
TRUNCATED_SUMMARY_LENGTH,
|
TRUNCATED_SUMMARY_LENGTH,
|
||||||
} from '../../../modules/helpers';
|
} from '../../../global/helpers';
|
||||||
import { LangFn } from '../../../hooks/useLang';
|
import { LangFn } from '../../../hooks/useLang';
|
||||||
import renderText from './renderText';
|
import renderText from './renderText';
|
||||||
import { renderTextWithEntities, TextPart } from './renderTextWithEntities';
|
import { renderTextWithEntities, TextPart } from './renderTextWithEntities';
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { MouseEvent } from 'react';
|
import { MouseEvent } from 'react';
|
||||||
import React from '../../../lib/teact/teact';
|
import React from '../../../lib/teact/teact';
|
||||||
import { getActions } from '../../../modules';
|
import { getActions } from '../../../global';
|
||||||
|
|
||||||
import { ApiFormattedText, ApiMessageEntity, ApiMessageEntityTypes } from '../../../api/types';
|
import { ApiFormattedText, ApiMessageEntity, ApiMessageEntityTypes } from '../../../api/types';
|
||||||
import renderText, { TextFilter } from './renderText';
|
import renderText, { TextFilter } from './renderText';
|
||||||
|
|||||||
@ -2,11 +2,11 @@ import {
|
|||||||
useCallback, useEffect, useRef, useState,
|
useCallback, useEffect, useRef, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import safePlay from '../../../util/safePlay';
|
import safePlay from '../../../util/safePlay';
|
||||||
import { getActions } from '../../../modules';
|
import { getActions } from '../../../global';
|
||||||
import useMedia from '../../../hooks/useMedia';
|
import useMedia from '../../../hooks/useMedia';
|
||||||
import { ActiveEmojiInteraction } from '../../../global/types';
|
import { ActiveEmojiInteraction } from '../../../global/types';
|
||||||
import useFlag from '../../../hooks/useFlag';
|
import useFlag from '../../../hooks/useFlag';
|
||||||
import { selectLocalAnimatedEmojiEffectByName } from '../../../modules/selectors';
|
import { selectLocalAnimatedEmojiEffectByName } from '../../../global/selectors';
|
||||||
|
|
||||||
const WIDTH = {
|
const WIDTH = {
|
||||||
large: 160,
|
large: 160,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useCallback, memo, useMemo, useState,
|
FC, useCallback, memo, useMemo, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { ApiChatFolder } from '../../api/types';
|
import { ApiChatFolder } from '../../api/types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useRef, useState,
|
FC, memo, useCallback, useEffect, useRef, useState,
|
||||||
} from '../../lib/teact/teact';
|
} from '../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../modules';
|
import { getActions, withGlobal } from '../../global';
|
||||||
|
|
||||||
import { LeftColumnContent, SettingsScreens } from '../../types';
|
import { LeftColumnContent, SettingsScreens } from '../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useLayoutEffect, useMemo, useRef,
|
FC, memo, useCallback, useLayoutEffect, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, getGlobal, withGlobal } from '../../../modules';
|
import { getActions, getGlobal, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import useLang, { LangFn } from '../../../hooks/useLang';
|
import useLang, { LangFn } from '../../../hooks/useLang';
|
||||||
|
|
||||||
@ -25,11 +25,11 @@ import {
|
|||||||
getMessageSticker,
|
getMessageSticker,
|
||||||
selectIsChatMuted,
|
selectIsChatMuted,
|
||||||
getMessageRoundVideo,
|
getMessageRoundVideo,
|
||||||
} from '../../../modules/helpers';
|
} from '../../../global/helpers';
|
||||||
import {
|
import {
|
||||||
selectChat, selectUser, selectChatMessage, selectOutgoingStatus, selectDraft, selectCurrentMessageList,
|
selectChat, selectUser, selectChatMessage, selectOutgoingStatus, selectDraft, selectCurrentMessageList,
|
||||||
selectNotifySettings, selectNotifyExceptions, selectUserStatus,
|
selectNotifySettings, selectNotifyExceptions, selectUserStatus,
|
||||||
} from '../../../modules/selectors';
|
} from '../../../global/selectors';
|
||||||
import { renderActionMessageText } from '../../common/helpers/renderActionMessageText';
|
import { renderActionMessageText } from '../../common/helpers/renderActionMessageText';
|
||||||
import renderText from '../../common/helpers/renderText';
|
import renderText from '../../common/helpers/renderText';
|
||||||
import { fastRaf } from '../../../util/schedulers';
|
import { fastRaf } from '../../../util/schedulers';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useMemo, useRef,
|
FC, memo, useCallback, useEffect, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChatFolder } from '../../../api/types';
|
import { ApiChatFolder } from '../../../api/types';
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useMemo, useEffect,
|
FC, memo, useMemo, useEffect,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions } from '../../../modules';
|
import { getActions } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';
|
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useEffect, useCallback, useMemo, memo,
|
FC, useEffect, useCallback, useMemo, memo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiUser, ApiUserStatus } from '../../../api/types';
|
import { ApiUser, ApiUserStatus } from '../../../api/types';
|
||||||
|
|
||||||
import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment';
|
import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment';
|
||||||
import { throttle } from '../../../util/schedulers';
|
import { throttle } from '../../../util/schedulers';
|
||||||
import { filterUsersByName, sortUserIds } from '../../../modules/helpers';
|
import { filterUsersByName, sortUserIds } from '../../../global/helpers';
|
||||||
import useInfiniteScroll from '../../../hooks/useInfiniteScroll';
|
import useInfiniteScroll from '../../../hooks/useInfiniteScroll';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../modules';
|
import { withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChatFolder, ApiSticker } from '../../../api/types';
|
import { ApiChatFolder, ApiSticker } from '../../../api/types';
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';
|
import { FolderEditDispatch } from '../../../hooks/reducers/useFoldersReducer';
|
||||||
|
|
||||||
import { IS_SINGLE_COLUMN_LAYOUT } from '../../../util/environment';
|
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 useLang from '../../../hooks/useLang';
|
||||||
|
|
||||||
import Button from '../../ui/Button';
|
import Button from '../../ui/Button';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo,
|
FC, memo, useCallback, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ISettings, LeftColumnContent } from '../../../types';
|
import { ISettings, LeftColumnContent } from '../../../types';
|
||||||
import { ApiChat } from '../../../api/types';
|
import { ApiChat } from '../../../api/types';
|
||||||
@ -16,8 +16,8 @@ import { formatDateToString } from '../../../util/dateFormat';
|
|||||||
import switchTheme from '../../../util/switchTheme';
|
import switchTheme from '../../../util/switchTheme';
|
||||||
import { setPermanentWebVersion } from '../../../util/permanentWebVersion';
|
import { setPermanentWebVersion } from '../../../util/permanentWebVersion';
|
||||||
import { clearWebsync } from '../../../util/websync';
|
import { clearWebsync } from '../../../util/websync';
|
||||||
import { selectCurrentMessageList, selectTheme } from '../../../modules/selectors';
|
import { selectCurrentMessageList, selectTheme } from '../../../global/selectors';
|
||||||
import { isChatArchived } from '../../../modules/helpers';
|
import { isChatArchived } from '../../../global/helpers';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import { disableHistoryBack } from '../../../hooks/useHistoryBack';
|
import { disableHistoryBack } from '../../../hooks/useHistoryBack';
|
||||||
import useConnectionStatus from '../../../hooks/useConnectionStatus';
|
import useConnectionStatus from '../../../hooks/useConnectionStatus';
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useCallback, useEffect, useMemo, memo,
|
FC, useCallback, useEffect, useMemo, memo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, getGlobal, withGlobal } from '../../../modules';
|
import { getActions, getGlobal, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat } from '../../../api/types';
|
import { ApiChat } from '../../../api/types';
|
||||||
|
|
||||||
import { unique } from '../../../util/iteratees';
|
import { unique } from '../../../util/iteratees';
|
||||||
import { throttle } from '../../../util/schedulers';
|
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 useLang from '../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useState, useCallback, useEffect, memo,
|
FC, useState, useCallback, useEffect, memo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ChatCreationProgress } from '../../../types';
|
import { ChatCreationProgress } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo,
|
FC, memo, useCallback, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { AudioOrigin, LoadMoreDirection } from '../../../types';
|
import { AudioOrigin, LoadMoreDirection } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback,
|
FC, memo, useCallback,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ApiChat, ApiUser, ApiMessage, ApiMessageOutgoingStatus,
|
ApiChat, ApiUser, ApiMessage, ApiMessageOutgoingStatus,
|
||||||
@ -15,8 +15,8 @@ import {
|
|||||||
getMessageMediaThumbDataUri,
|
getMessageMediaThumbDataUri,
|
||||||
getMessageVideo,
|
getMessageVideo,
|
||||||
getMessageRoundVideo,
|
getMessageRoundVideo,
|
||||||
} from '../../../modules/helpers';
|
} from '../../../global/helpers';
|
||||||
import { selectChat, selectUser } from '../../../modules/selectors';
|
import { selectChat, selectUser } from '../../../global/selectors';
|
||||||
import renderText from '../../common/helpers/renderText';
|
import renderText from '../../common/helpers/renderText';
|
||||||
import useMedia from '../../../hooks/useMedia';
|
import useMedia from '../../../hooks/useMedia';
|
||||||
import { formatPastTimeShort } from '../../../util/dateFormat';
|
import { formatPastTimeShort } from '../../../util/dateFormat';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo,
|
FC, memo, useCallback, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiMessage } from '../../../api/types';
|
import { ApiChat, ApiMessage } from '../../../api/types';
|
||||||
import { LoadMoreDirection } from '../../../types';
|
import { LoadMoreDirection } from '../../../types';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useState,
|
FC, memo, useCallback, useMemo, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, getGlobal, withGlobal } from '../../../modules';
|
import { getActions, getGlobal, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiMessage } from '../../../api/types';
|
import { ApiChat, ApiMessage } from '../../../api/types';
|
||||||
import { LoadMoreDirection } from '../../../types';
|
import { LoadMoreDirection } from '../../../types';
|
||||||
@ -11,7 +11,7 @@ import { unique } from '../../../util/iteratees';
|
|||||||
import {
|
import {
|
||||||
sortChatIds,
|
sortChatIds,
|
||||||
filterUsersByName,
|
filterUsersByName,
|
||||||
} from '../../../modules/helpers';
|
} from '../../../global/helpers';
|
||||||
import { MEMO_EMPTY_ARRAY } from '../../../util/memo';
|
import { MEMO_EMPTY_ARRAY } from '../../../util/memo';
|
||||||
import { throttle } from '../../../util/schedulers';
|
import { throttle } from '../../../util/schedulers';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useRef,
|
FC, memo, useCallback, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiMessage } from '../../../api/types';
|
import { ApiMessage } from '../../../api/types';
|
||||||
import { LoadMoreDirection } from '../../../types';
|
import { LoadMoreDirection } from '../../../types';
|
||||||
@ -12,7 +12,7 @@ import { createMapStateToProps, StateProps } from './helpers/createMapStateToPro
|
|||||||
import { formatMonthAndYear, toYearMonth } from '../../../util/dateFormat';
|
import { formatMonthAndYear, toYearMonth } from '../../../util/dateFormat';
|
||||||
import { getSenderName } from './helpers/getSenderName';
|
import { getSenderName } from './helpers/getSenderName';
|
||||||
import { throttle } from '../../../util/schedulers';
|
import { throttle } from '../../../util/schedulers';
|
||||||
import { getMessageDocument } from '../../../modules/helpers';
|
import { getMessageDocument } from '../../../global/helpers';
|
||||||
import useAsyncRendering from '../../right/hooks/useAsyncRendering';
|
import useAsyncRendering from '../../right/hooks/useAsyncRendering';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import { useIntersectionObserver } from '../../../hooks/useIntersectionObserver';
|
import { useIntersectionObserver } from '../../../hooks/useIntersectionObserver';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useState, useMemo, useRef,
|
FC, memo, useCallback, useState, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { GlobalSearchContent } from '../../../types';
|
import { GlobalSearchContent } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo,
|
FC, memo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../modules';
|
import { withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiUser } from '../../../api/types';
|
import { ApiChat, ApiUser } from '../../../api/types';
|
||||||
|
|
||||||
import useChatContextActions from '../../../hooks/useChatContextActions';
|
import useChatContextActions from '../../../hooks/useChatContextActions';
|
||||||
import useFlag from '../../../hooks/useFlag';
|
import useFlag from '../../../hooks/useFlag';
|
||||||
import { isUserId, getPrivateChatUserId, selectIsChatMuted } from '../../../modules/helpers';
|
import { isUserId, getPrivateChatUserId, selectIsChatMuted } from '../../../global/helpers';
|
||||||
import {
|
import {
|
||||||
selectChat, selectUser, selectIsChatPinned, selectNotifySettings, selectNotifyExceptions,
|
selectChat, selectUser, selectIsChatPinned, selectNotifySettings, selectNotifyExceptions,
|
||||||
} from '../../../modules/selectors';
|
} from '../../../global/selectors';
|
||||||
import useSelectWithEnter from '../../../hooks/useSelectWithEnter';
|
import useSelectWithEnter from '../../../hooks/useSelectWithEnter';
|
||||||
|
|
||||||
import PrivateChatInfo from '../../common/PrivateChatInfo';
|
import PrivateChatInfo from '../../common/PrivateChatInfo';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useRef,
|
FC, memo, useCallback, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { LoadMoreDirection } from '../../../types';
|
import { LoadMoreDirection } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useRef,
|
FC, memo, useCallback, useMemo, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { LoadMoreDirection, MediaViewerOrigin } from '../../../types';
|
import { LoadMoreDirection, MediaViewerOrigin } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useEffect, useCallback, useRef, memo,
|
FC, useEffect, useCallback, useRef, memo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiUser } from '../../../api/types';
|
import { ApiUser } from '../../../api/types';
|
||||||
|
|
||||||
import { getUserFirstOrLastName } from '../../../modules/helpers';
|
import { getUserFirstOrLastName } from '../../../global/helpers';
|
||||||
import renderText from '../../common/helpers/renderText';
|
import renderText from '../../common/helpers/renderText';
|
||||||
import { throttle } from '../../../util/schedulers';
|
import { throttle } from '../../../util/schedulers';
|
||||||
import useHorizontalScroll from '../../../hooks/useHorizontalScroll';
|
import useHorizontalScroll from '../../../hooks/useHorizontalScroll';
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
} from '../../../../api/types';
|
} from '../../../../api/types';
|
||||||
import { ISettings } from '../../../../types';
|
import { ISettings } from '../../../../types';
|
||||||
|
|
||||||
import { selectChat, selectTheme } from '../../../../modules/selectors';
|
import { selectChat, selectTheme } from '../../../../global/selectors';
|
||||||
|
|
||||||
export type StateProps = {
|
export type StateProps = {
|
||||||
theme: ISettings['theme'];
|
theme: ISettings['theme'];
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import {
|
|||||||
getSenderTitle,
|
getSenderTitle,
|
||||||
isUserId,
|
isUserId,
|
||||||
isChatGroup,
|
isChatGroup,
|
||||||
} from '../../../../modules/helpers';
|
} from '../../../../global/helpers';
|
||||||
import { LangFn } from '../../../../hooks/useLang';
|
import { LangFn } from '../../../../hooks/useLang';
|
||||||
|
|
||||||
export function getSenderName(
|
export function getSenderName(
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useMemo, useState, memo, useRef, useCallback, useEffect,
|
FC, useMemo, useState, memo, useRef, useCallback, useEffect,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiUser } from '../../../api/types';
|
import { ApiUser } from '../../../api/types';
|
||||||
|
|
||||||
import { filterUsersByName, getUserFullName } from '../../../modules/helpers';
|
import { filterUsersByName, getUserFullName } from '../../../global/helpers';
|
||||||
import { unique } from '../../../util/iteratees';
|
import { unique } from '../../../util/iteratees';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens, ISettings } from '../../../types';
|
import { SettingsScreens, ISettings } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -2,14 +2,14 @@ import { ChangeEvent } from 'react';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useState, useCallback, memo, useEffect, useMemo,
|
FC, useState, useCallback, memo, useEffect, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiMediaFormat } from '../../../api/types';
|
import { ApiMediaFormat } from '../../../api/types';
|
||||||
import { ProfileEditProgress, SettingsScreens } from '../../../types';
|
import { ProfileEditProgress, SettingsScreens } from '../../../types';
|
||||||
|
|
||||||
import { throttle } from '../../../util/schedulers';
|
import { throttle } from '../../../util/schedulers';
|
||||||
import { selectUser } from '../../../modules/selectors';
|
import { selectUser } from '../../../global/selectors';
|
||||||
import { getChatAvatarHash } from '../../../modules/helpers';
|
import { getChatAvatarHash } from '../../../global/helpers';
|
||||||
import useMedia from '../../../hooks/useMedia';
|
import useMedia from '../../../hooks/useMedia';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, useCallback, memo, useRef, useState,
|
FC, useCallback, memo, useRef, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens, ISettings, TimeFormat } from '../../../types';
|
import { SettingsScreens, ISettings, TimeFormat } from '../../../types';
|
||||||
import { ApiSticker, ApiStickerSet } from '../../../api/types';
|
import { ApiSticker, ApiStickerSet } from '../../../api/types';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useEffect, useCallback, useRef,
|
FC, memo, useEffect, useCallback, useRef,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens, ThemeKey, UPLOADING_WALLPAPER_SLUG } from '../../../types';
|
import { SettingsScreens, ThemeKey, UPLOADING_WALLPAPER_SLUG } from '../../../types';
|
||||||
import { ApiWallpaper } from '../../../api/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 { throttle } from '../../../util/schedulers';
|
||||||
import { openSystemFilesDialog } from '../../../util/systemFilesDialog';
|
import { openSystemFilesDialog } from '../../../util/systemFilesDialog';
|
||||||
import { getAverageColor, getPatternColor, rgb2hex } from '../../../util/colors';
|
import { getAverageColor, getPatternColor, rgb2hex } from '../../../util/colors';
|
||||||
import { selectTheme } from '../../../modules/selectors';
|
import { selectTheme } from '../../../global/selectors';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { ChangeEvent, MutableRefObject, RefObject } from 'react';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useRef, useState,
|
FC, memo, useCallback, useEffect, useRef, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens, ThemeKey } from '../../../types';
|
import { SettingsScreens, ThemeKey } from '../../../types';
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ import {
|
|||||||
getPatternColor, hex2rgb, hsb2rgb, rgb2hex, rgb2hsb,
|
getPatternColor, hex2rgb, hsb2rgb, rgb2hex, rgb2hsb,
|
||||||
} from '../../../util/colors';
|
} from '../../../util/colors';
|
||||||
import { captureEvents, RealTouchEvent } from '../../../util/captureEvents';
|
import { captureEvents, RealTouchEvent } from '../../../util/captureEvents';
|
||||||
import { selectTheme } from '../../../modules/selectors';
|
import { selectTheme } from '../../../global/selectors';
|
||||||
import useFlag from '../../../hooks/useFlag';
|
import useFlag from '../../../hooks/useFlag';
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useState,
|
FC, memo, useCallback, useMemo, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions } from '../../../modules';
|
import { getActions } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useMemo, useState,
|
FC, memo, useCallback, useEffect, useMemo, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ISettings, LangCode, SettingsScreens } from '../../../types';
|
import { ISettings, LangCode, SettingsScreens } from '../../../types';
|
||||||
import { ApiLanguage } from '../../../api/types';
|
import { ApiLanguage } from '../../../api/types';
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
|
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
import { ApiUser } from '../../../api/types';
|
import { ApiUser } from '../../../api/types';
|
||||||
|
|
||||||
import { selectUser } from '../../../modules/selectors';
|
import { selectUser } from '../../../global/selectors';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import useDebounce from '../../../hooks/useDebounce';
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect,
|
FC, memo, useCallback, useEffect,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
|
import React, { FC, memo, useEffect } from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { PrivacyVisibility, SettingsScreens } from '../../../types';
|
import { PrivacyVisibility, SettingsScreens } from '../../../types';
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useMemo,
|
FC, memo, useCallback, useEffect, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiSession } from '../../../api/types';
|
import { ApiSession } from '../../../api/types';
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback,
|
FC, memo, useCallback,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiCountryCode, ApiUser } from '../../../api/types';
|
import { ApiChat, ApiCountryCode, ApiUser } from '../../../api/types';
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
@ -10,7 +10,7 @@ import { CHAT_HEIGHT_PX } from '../../../config';
|
|||||||
import { formatPhoneNumberWithCode } from '../../../util/phoneNumber';
|
import { formatPhoneNumberWithCode } from '../../../util/phoneNumber';
|
||||||
import {
|
import {
|
||||||
getChatTitle, getUserFullName, isUserId,
|
getChatTitle, getUserFullName, isUserId,
|
||||||
} from '../../../modules/helpers';
|
} from '../../../global/helpers';
|
||||||
import renderText from '../../common/helpers/renderText';
|
import renderText from '../../common/helpers/renderText';
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo,
|
FC, memo, useCallback, useMemo,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { ApiChat, ApiUser } from '../../../api/types';
|
import { ApiChat, ApiUser } from '../../../api/types';
|
||||||
import { ApiPrivacySettings, SettingsScreens } from '../../../types';
|
import { ApiPrivacySettings, SettingsScreens } from '../../../types';
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useMemo, useState,
|
FC, memo, useCallback, useMemo, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, getGlobal, withGlobal } from '../../../modules';
|
import { getActions, getGlobal, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../../global/types';
|
import { GlobalState } from '../../../global/types';
|
||||||
import { ApiPrivacySettings, SettingsScreens } from '../../../types';
|
import { ApiPrivacySettings, SettingsScreens } from '../../../types';
|
||||||
|
|
||||||
import { ALL_FOLDER_ID, ARCHIVED_FOLDER_ID } from '../../../config';
|
import { ALL_FOLDER_ID, ARCHIVED_FOLDER_ID } from '../../../config';
|
||||||
import { unique } from '../../../util/iteratees';
|
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 useLang from '../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
import { useFolderManagerForOrderedIds } from '../../../hooks/useFolderManager';
|
import { useFolderManagerForOrderedIds } from '../../../hooks/useFolderManager';
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
import React, { FC, memo, useCallback } from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../modules';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../types';
|
import { SettingsScreens } from '../../../types';
|
||||||
import { ApiAvailableReaction } from '../../../api/types';
|
import { ApiAvailableReaction } from '../../../api/types';
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useMemo, useCallback,
|
FC, memo, useMemo, useCallback,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
import { getGlobal } from '../../../../modules';
|
import { getGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { unique } from '../../../../util/iteratees';
|
import { unique } from '../../../../util/iteratees';
|
||||||
|
|
||||||
import { ALL_FOLDER_ID, ARCHIVED_FOLDER_ID } from '../../../../config';
|
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 useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
import { useFolderManagerForOrderedIds } from '../../../../hooks/useFolderManager';
|
import { useFolderManagerForOrderedIds } from '../../../../hooks/useFolderManager';
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import React, {
|
|||||||
FC, useCallback, useRef, useEffect, memo,
|
FC, useCallback, useRef, useEffect, memo,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
|
|
||||||
import { isUserId } from '../../../../modules/helpers';
|
import { isUserId } from '../../../../global/helpers';
|
||||||
import {
|
import {
|
||||||
INCLUDED_CHAT_TYPES,
|
INCLUDED_CHAT_TYPES,
|
||||||
EXCLUDED_CHAT_TYPES,
|
EXCLUDED_CHAT_TYPES,
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect, useMemo, useState,
|
FC, memo, useCallback, useEffect, useMemo, useState,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../../modules';
|
import { getActions, withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { STICKER_SIZE_FOLDER_SETTINGS } from '../../../../config';
|
import { STICKER_SIZE_FOLDER_SETTINGS } from '../../../../config';
|
||||||
import { findIntersectionWithSet } from '../../../../util/iteratees';
|
import { findIntersectionWithSet } from '../../../../util/iteratees';
|
||||||
import { isUserId } from '../../../../modules/helpers';
|
import { isUserId } from '../../../../global/helpers';
|
||||||
import getAnimationData from '../../../common/helpers/animatedAssets';
|
import getAnimationData from '../../../common/helpers/animatedAssets';
|
||||||
import {
|
import {
|
||||||
EXCLUDED_CHAT_TYPES,
|
EXCLUDED_CHAT_TYPES,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useMemo, useCallback, useState, useEffect,
|
FC, memo, useMemo, useCallback, useState, useEffect,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../../modules';
|
import { getActions, withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { ApiChatFolder } from '../../../../api/types';
|
import { ApiChatFolder } from '../../../../api/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
@ -9,7 +9,7 @@ import { SettingsScreens } from '../../../../types';
|
|||||||
import { STICKER_SIZE_FOLDER_SETTINGS } from '../../../../config';
|
import { STICKER_SIZE_FOLDER_SETTINGS } from '../../../../config';
|
||||||
import { throttle } from '../../../../util/schedulers';
|
import { throttle } from '../../../../util/schedulers';
|
||||||
import getAnimationData from '../../../common/helpers/animatedAssets';
|
import getAnimationData from '../../../common/helpers/animatedAssets';
|
||||||
import { getFolderDescriptionText } from '../../../../modules/helpers';
|
import { getFolderDescriptionText } from '../../../../global/helpers';
|
||||||
import useLang from '../../../../hooks/useLang';
|
import useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
import { useFolderManagerForChatsCount } from '../../../../hooks/useFolderManager';
|
import { useFolderManagerForChatsCount } from '../../../../hooks/useFolderManager';
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useCallback, useEffect,
|
FC, memo, useCallback, useEffect,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../../modules';
|
import { getActions, withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { GlobalState } from '../../../../global/types';
|
import { GlobalState } from '../../../../global/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, memo } from '../../../../lib/teact/teact';
|
import React, { FC, memo } from '../../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../../modules';
|
import { withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { ApiSticker } from '../../../../api/types';
|
import { ApiSticker } from '../../../../api/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { selectAnimatedEmoji } from '../../../../modules/selectors';
|
import { selectAnimatedEmoji } from '../../../../global/selectors';
|
||||||
import useLang from '../../../../hooks/useLang';
|
import useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useEffect, useRef, useState,
|
FC, memo, useEffect, useRef, useState,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../../modules';
|
import { withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { ApiSticker } from '../../../../api/types';
|
import { ApiSticker } from '../../../../api/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { IS_SINGLE_COLUMN_LAYOUT, IS_TOUCH_ENV } from '../../../../util/environment';
|
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 useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, memo } from '../../../../lib/teact/teact';
|
import React, { FC, memo } from '../../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../../modules';
|
import { withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { ApiSticker } from '../../../../api/types';
|
import { ApiSticker } from '../../../../api/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { selectAnimatedEmoji } from '../../../../modules/selectors';
|
import { selectAnimatedEmoji } from '../../../../global/selectors';
|
||||||
import useLang from '../../../../hooks/useLang';
|
import useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import React, {
|
import React, {
|
||||||
FC, memo, useEffect, useRef, useState,
|
FC, memo, useEffect, useRef, useState,
|
||||||
} from '../../../../lib/teact/teact';
|
} from '../../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../../modules';
|
import { withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { ApiSticker } from '../../../../api/types';
|
import { ApiSticker } from '../../../../api/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { IS_SINGLE_COLUMN_LAYOUT, IS_TOUCH_ENV } from '../../../../util/environment';
|
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 useFlag from '../../../../hooks/useFlag';
|
||||||
import useLang from '../../../../hooks/useLang';
|
import useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import React, { FC, memo } from '../../../../lib/teact/teact';
|
import React, { FC, memo } from '../../../../lib/teact/teact';
|
||||||
import { withGlobal } from '../../../../modules';
|
import { withGlobal } from '../../../../global';
|
||||||
|
|
||||||
import { ApiSticker } from '../../../../api/types';
|
import { ApiSticker } from '../../../../api/types';
|
||||||
import { SettingsScreens } from '../../../../types';
|
import { SettingsScreens } from '../../../../types';
|
||||||
|
|
||||||
import { selectAnimatedEmoji } from '../../../../modules/selectors';
|
import { selectAnimatedEmoji } from '../../../../global/selectors';
|
||||||
import useLang from '../../../../hooks/useLang';
|
import useLang from '../../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../../hooks/useHistoryBack';
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user