2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2019 Signal Messenger, LLC
|
2020-10-30 20:34:04 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-05-19 16:14:35 +00:00
|
|
|
import { get } from 'lodash';
|
2024-03-13 20:44:13 +00:00
|
|
|
import React, { memo } from 'react';
|
|
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import type { PropsType as DialogExpiredBuildPropsType } from '../../components/DialogExpiredBuild';
|
|
|
|
import { DialogExpiredBuild } from '../../components/DialogExpiredBuild';
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { PropsType as LeftPanePropsType } from '../../components/LeftPane';
|
2024-02-08 23:19:03 +00:00
|
|
|
import { LeftPane } from '../../components/LeftPane';
|
2024-03-13 20:44:13 +00:00
|
|
|
import type { NavTabPanelProps } from '../../components/NavTabs';
|
|
|
|
import type { WidthBreakpoint } from '../../components/_util';
|
|
|
|
import {
|
|
|
|
getGroupSizeHardLimit,
|
|
|
|
getGroupSizeRecommendedLimit,
|
|
|
|
} from '../../groups/limits';
|
|
|
|
import { LeftPaneMode } from '../../types/leftPane';
|
|
|
|
import { getUsernameFromSearch } from '../../util/Username';
|
|
|
|
import { getCountryDataForLocale } from '../../util/getCountryData';
|
2023-08-10 16:43:33 +00:00
|
|
|
import { lookupConversationWithoutServiceId } from '../../util/lookupConversationWithoutServiceId';
|
2024-03-13 20:44:13 +00:00
|
|
|
import { missingCaseError } from '../../util/missingCaseError';
|
2023-01-18 23:31:10 +00:00
|
|
|
import { isDone as isRegistrationDone } from '../../util/registration';
|
2024-03-13 20:44:13 +00:00
|
|
|
import { useCallingActions } from '../ducks/calling';
|
|
|
|
import { useConversationsActions } from '../ducks/conversations';
|
2021-11-01 19:13:35 +00:00
|
|
|
import { ComposerStep, OneTimeModalState } from '../ducks/conversationsEnums';
|
2024-03-13 20:44:13 +00:00
|
|
|
import { useGlobalModalActions } from '../ducks/globalModals';
|
|
|
|
import { useItemsActions } from '../ducks/items';
|
|
|
|
import { useNetworkActions } from '../ducks/network';
|
|
|
|
import { useSearchActions } from '../ducks/search';
|
|
|
|
import { useUsernameActions } from '../ducks/username';
|
|
|
|
import type { StateType } from '../reducer';
|
2021-11-17 21:11:21 +00:00
|
|
|
import { getPreferredBadgeSelector } from '../selectors/badges';
|
2019-11-07 21:36:16 +00:00
|
|
|
import {
|
2021-08-06 00:17:05 +00:00
|
|
|
getComposeAvatarData,
|
2021-03-03 20:09:58 +00:00
|
|
|
getComposeGroupAvatar,
|
2021-06-25 23:52:56 +00:00
|
|
|
getComposeGroupExpireTimer,
|
2021-08-06 00:17:05 +00:00
|
|
|
getComposeGroupName,
|
2024-03-13 20:44:13 +00:00
|
|
|
getComposeSelectedContacts,
|
2021-04-20 23:16:49 +00:00
|
|
|
getComposerConversationSearchTerm,
|
2024-02-08 23:19:03 +00:00
|
|
|
getComposerSelectedRegion,
|
2021-03-03 20:09:58 +00:00
|
|
|
getComposerStep,
|
2022-04-05 00:38:22 +00:00
|
|
|
getComposerUUIDFetchState,
|
2021-08-06 00:17:05 +00:00
|
|
|
getFilteredCandidateContactsForNewGroup,
|
|
|
|
getFilteredComposeContacts,
|
|
|
|
getFilteredComposeGroups,
|
2019-11-07 21:36:16 +00:00
|
|
|
getLeftPaneLists,
|
2021-03-03 20:09:58 +00:00
|
|
|
getMaximumGroupSizeModalState,
|
2023-11-07 23:45:33 +00:00
|
|
|
getMe,
|
2021-03-03 20:09:58 +00:00
|
|
|
getRecommendedGroupSizeModalState,
|
2021-02-12 21:58:14 +00:00
|
|
|
getSelectedConversationId,
|
2019-11-07 21:36:16 +00:00
|
|
|
getShowArchived,
|
2024-03-13 20:44:13 +00:00
|
|
|
getTargetedMessage,
|
2021-03-03 20:09:58 +00:00
|
|
|
hasGroupCreationError,
|
|
|
|
isCreatingGroup,
|
2021-08-06 00:17:05 +00:00
|
|
|
isEditingAvatar,
|
2019-11-07 21:36:16 +00:00
|
|
|
} from '../selectors/conversations';
|
2024-03-13 20:44:13 +00:00
|
|
|
import { getCrashReportCount } from '../selectors/crashReports';
|
|
|
|
import { hasExpired } from '../selectors/expiration';
|
2022-10-24 20:46:36 +00:00
|
|
|
import {
|
2024-03-13 20:44:13 +00:00
|
|
|
getNavTabsCollapsed,
|
|
|
|
getPreferredLeftPaneWidth,
|
|
|
|
getUsernameCorrupted,
|
|
|
|
getUsernameLinkCorrupted,
|
|
|
|
} from '../selectors/items';
|
|
|
|
import {
|
|
|
|
getChallengeStatus,
|
|
|
|
hasNetworkDialog as getHasNetworkDialog,
|
|
|
|
} from '../selectors/network';
|
|
|
|
import {
|
|
|
|
getIsSearching,
|
|
|
|
getQuery,
|
|
|
|
getSearchConversation,
|
|
|
|
getSearchResults,
|
|
|
|
getStartSearchCounter,
|
|
|
|
isSearching,
|
|
|
|
} from '../selectors/search';
|
|
|
|
import {
|
|
|
|
isUpdateDownloaded as getIsUpdateDownloaded,
|
|
|
|
isOSUnsupported,
|
|
|
|
isUpdateDialogVisible,
|
|
|
|
} from '../selectors/updates';
|
|
|
|
import {
|
|
|
|
getIntl,
|
|
|
|
getIsMacOS,
|
|
|
|
getRegionCode,
|
|
|
|
getTheme,
|
|
|
|
} from '../selectors/user';
|
|
|
|
import { SmartCaptchaDialog } from './CaptchaDialog';
|
|
|
|
import { SmartCrashReportDialog } from './CrashReportDialog';
|
2019-08-09 00:46:49 +00:00
|
|
|
import { SmartMessageSearchResult } from './MessageSearchResult';
|
2020-02-12 21:30:58 +00:00
|
|
|
import { SmartNetworkStatus } from './NetworkStatus';
|
2020-04-16 19:20:52 +00:00
|
|
|
import { SmartRelinkDialog } from './RelinkDialog';
|
2024-01-29 20:09:54 +00:00
|
|
|
import { SmartToastManager } from './ToastManager';
|
2023-01-18 23:31:10 +00:00
|
|
|
import type { PropsType as SmartUnsupportedOSDialogPropsType } from './UnsupportedOSDialog';
|
2024-03-13 20:44:13 +00:00
|
|
|
import { SmartUnsupportedOSDialog } from './UnsupportedOSDialog';
|
2020-02-12 21:30:58 +00:00
|
|
|
import { SmartUpdateDialog } from './UpdateDialog';
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-08-11 16:23:21 +00:00
|
|
|
function renderMessageSearchResult(id: string): JSX.Element {
|
2021-11-01 19:13:35 +00:00
|
|
|
return <SmartMessageSearchResult id={id} />;
|
2019-08-09 00:46:49 +00:00
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
function renderNetworkStatus(
|
|
|
|
props: Readonly<{ containerWidthBreakpoint: WidthBreakpoint }>
|
|
|
|
): JSX.Element {
|
|
|
|
return <SmartNetworkStatus {...props} />;
|
2020-02-12 21:30:58 +00:00
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
function renderRelinkDialog(
|
|
|
|
props: Readonly<{ containerWidthBreakpoint: WidthBreakpoint }>
|
|
|
|
): JSX.Element {
|
|
|
|
return <SmartRelinkDialog {...props} />;
|
2020-04-16 19:20:52 +00:00
|
|
|
}
|
2021-10-12 23:59:08 +00:00
|
|
|
function renderUpdateDialog(
|
|
|
|
props: Readonly<{ containerWidthBreakpoint: WidthBreakpoint }>
|
|
|
|
): JSX.Element {
|
|
|
|
return <SmartUpdateDialog {...props} />;
|
2020-04-16 19:20:52 +00:00
|
|
|
}
|
2021-05-06 00:09:29 +00:00
|
|
|
function renderCaptchaDialog({ onSkip }: { onSkip(): void }): JSX.Element {
|
|
|
|
return <SmartCaptchaDialog onSkip={onSkip} />;
|
|
|
|
}
|
2022-01-11 20:02:46 +00:00
|
|
|
function renderCrashReportDialog(): JSX.Element {
|
|
|
|
return <SmartCrashReportDialog />;
|
|
|
|
}
|
2023-01-18 23:31:10 +00:00
|
|
|
function renderExpiredBuildDialog(
|
|
|
|
props: DialogExpiredBuildPropsType
|
|
|
|
): JSX.Element {
|
|
|
|
return <DialogExpiredBuild {...props} />;
|
|
|
|
}
|
|
|
|
function renderUnsupportedOSDialog(
|
|
|
|
props: Readonly<SmartUnsupportedOSDialogPropsType>
|
|
|
|
): JSX.Element {
|
|
|
|
return <SmartUnsupportedOSDialog {...props} />;
|
|
|
|
}
|
2024-03-13 20:44:13 +00:00
|
|
|
function renderToastManagerWithMegaphone(props: {
|
2024-01-29 20:09:54 +00:00
|
|
|
containerWidthBreakpoint: WidthBreakpoint;
|
|
|
|
}): JSX.Element {
|
|
|
|
return <SmartToastManager {...props} />;
|
|
|
|
}
|
|
|
|
|
|
|
|
function renderToastManagerWithoutMegaphone(props: {
|
|
|
|
containerWidthBreakpoint: WidthBreakpoint;
|
|
|
|
}): JSX.Element {
|
|
|
|
return <SmartToastManager disableMegaphone {...props} />;
|
|
|
|
}
|
2019-05-31 22:42:01 +00:00
|
|
|
|
2021-02-23 20:34:28 +00:00
|
|
|
const getModeSpecificProps = (
|
|
|
|
state: StateType
|
|
|
|
): LeftPanePropsType['modeSpecificProps'] => {
|
2024-02-08 23:19:03 +00:00
|
|
|
const i18n = getIntl(state);
|
2021-03-03 20:09:58 +00:00
|
|
|
const composerStep = getComposerStep(state);
|
|
|
|
switch (composerStep) {
|
|
|
|
case undefined:
|
|
|
|
if (getShowArchived(state)) {
|
|
|
|
const { archivedConversations } = getLeftPaneLists(state);
|
2021-11-01 18:43:02 +00:00
|
|
|
const searchConversation = getSearchConversation(state);
|
|
|
|
const searchTerm = getQuery(state);
|
2021-03-03 20:09:58 +00:00
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.Archive,
|
|
|
|
archivedConversations,
|
2021-11-01 18:43:02 +00:00
|
|
|
searchConversation,
|
|
|
|
searchTerm,
|
2022-02-02 15:30:39 +00:00
|
|
|
startSearchCounter: getStartSearchCounter(state),
|
2021-11-01 18:43:02 +00:00
|
|
|
...(searchConversation && searchTerm ? getSearchResults(state) : {}),
|
2021-03-03 20:09:58 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
if (isSearching(state)) {
|
2021-05-19 16:14:35 +00:00
|
|
|
const primarySendsSms = Boolean(
|
|
|
|
get(state.items, ['primarySendsSms'], false)
|
|
|
|
);
|
|
|
|
|
2021-03-03 20:09:58 +00:00
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.Search,
|
2021-05-19 16:14:35 +00:00
|
|
|
primarySendsSms,
|
2022-01-27 22:12:26 +00:00
|
|
|
searchConversation: getSearchConversation(state),
|
|
|
|
searchDisabled: state.network.challengeStatus !== 'idle',
|
|
|
|
startSearchCounter: getStartSearchCounter(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
...getSearchResults(state),
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.Inbox,
|
2023-02-22 19:21:59 +00:00
|
|
|
isAboutToSearch: getIsSearching(state),
|
2022-01-27 22:12:26 +00:00
|
|
|
searchConversation: getSearchConversation(state),
|
|
|
|
searchDisabled: state.network.challengeStatus !== 'idle',
|
|
|
|
searchTerm: getQuery(state),
|
2021-10-12 23:59:08 +00:00
|
|
|
startSearchCounter: getStartSearchCounter(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
...getLeftPaneLists(state),
|
|
|
|
};
|
|
|
|
case ComposerStep.StartDirectConversation:
|
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.Compose,
|
2021-05-04 16:17:32 +00:00
|
|
|
composeContacts: getFilteredComposeContacts(state),
|
|
|
|
composeGroups: getFilteredComposeGroups(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
regionCode: getRegionCode(state),
|
2021-04-20 23:16:49 +00:00
|
|
|
searchTerm: getComposerConversationSearchTerm(state),
|
2022-04-05 00:38:22 +00:00
|
|
|
uuidFetchState: getComposerUUIDFetchState(state),
|
2024-02-14 18:18:49 +00:00
|
|
|
username: getUsernameFromSearch(
|
|
|
|
getComposerConversationSearchTerm(state)
|
|
|
|
),
|
2021-03-03 20:09:58 +00:00
|
|
|
};
|
2024-02-08 23:19:03 +00:00
|
|
|
case ComposerStep.FindByUsername:
|
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.FindByUsername,
|
|
|
|
searchTerm: getComposerConversationSearchTerm(state),
|
|
|
|
uuidFetchState: getComposerUUIDFetchState(state),
|
2024-02-14 18:18:49 +00:00
|
|
|
username: getUsernameFromSearch(
|
|
|
|
getComposerConversationSearchTerm(state)
|
|
|
|
),
|
2024-02-08 23:19:03 +00:00
|
|
|
};
|
|
|
|
case ComposerStep.FindByPhoneNumber:
|
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.FindByPhoneNumber,
|
|
|
|
searchTerm: getComposerConversationSearchTerm(state),
|
|
|
|
regionCode: getRegionCode(state),
|
|
|
|
uuidFetchState: getComposerUUIDFetchState(state),
|
|
|
|
countries: getCountryDataForLocale(i18n.getLocale()),
|
|
|
|
selectedRegion: getComposerSelectedRegion(state),
|
|
|
|
};
|
2021-03-03 20:09:58 +00:00
|
|
|
case ComposerStep.ChooseGroupMembers:
|
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.ChooseGroupMembers,
|
2021-05-04 16:17:32 +00:00
|
|
|
candidateContacts: getFilteredCandidateContactsForNewGroup(state),
|
2022-10-24 20:46:36 +00:00
|
|
|
groupSizeRecommendedLimit: getGroupSizeRecommendedLimit(),
|
|
|
|
groupSizeHardLimit: getGroupSizeHardLimit(),
|
2021-03-03 20:09:58 +00:00
|
|
|
isShowingRecommendedGroupSizeModal:
|
|
|
|
getRecommendedGroupSizeModalState(state) ===
|
|
|
|
OneTimeModalState.Showing,
|
|
|
|
isShowingMaximumGroupSizeModal:
|
|
|
|
getMaximumGroupSizeModalState(state) === OneTimeModalState.Showing,
|
2024-01-05 22:47:29 +00:00
|
|
|
ourE164: getMe(state).e164,
|
2023-11-07 23:45:33 +00:00
|
|
|
ourUsername: getMe(state).username,
|
2022-04-05 00:38:22 +00:00
|
|
|
regionCode: getRegionCode(state),
|
2021-04-20 23:16:49 +00:00
|
|
|
searchTerm: getComposerConversationSearchTerm(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
selectedContacts: getComposeSelectedContacts(state),
|
2022-04-05 00:38:22 +00:00
|
|
|
uuidFetchState: getComposerUUIDFetchState(state),
|
2024-02-14 18:18:49 +00:00
|
|
|
username: getUsernameFromSearch(
|
|
|
|
getComposerConversationSearchTerm(state)
|
|
|
|
),
|
2021-03-03 20:09:58 +00:00
|
|
|
};
|
|
|
|
case ComposerStep.SetGroupMetadata:
|
|
|
|
return {
|
|
|
|
mode: LeftPaneMode.SetGroupMetadata,
|
|
|
|
groupAvatar: getComposeGroupAvatar(state),
|
|
|
|
groupName: getComposeGroupName(state),
|
2021-06-25 23:52:56 +00:00
|
|
|
groupExpireTimer: getComposeGroupExpireTimer(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
hasError: hasGroupCreationError(state),
|
|
|
|
isCreating: isCreatingGroup(state),
|
2021-08-06 00:17:05 +00:00
|
|
|
isEditingAvatar: isEditingAvatar(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
selectedContacts: getComposeSelectedContacts(state),
|
2021-08-06 00:17:05 +00:00
|
|
|
userAvatarData: getComposeAvatarData(state),
|
2021-03-03 20:09:58 +00:00
|
|
|
};
|
|
|
|
default:
|
|
|
|
throw missingCaseError(composerStep);
|
2021-02-23 20:34:28 +00:00
|
|
|
}
|
|
|
|
};
|
2019-03-12 00:20:16 +00:00
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
export const SmartLeftPane = memo(function SmartLeftPane({
|
|
|
|
hasFailedStorySends,
|
|
|
|
hasPendingUpdate,
|
|
|
|
otherTabsUnreadStats,
|
|
|
|
}: NavTabPanelProps) {
|
|
|
|
const challengeStatus = useSelector(getChallengeStatus);
|
|
|
|
const composerStep = useSelector(getComposerStep);
|
|
|
|
const crashReportCount = useSelector(getCrashReportCount);
|
|
|
|
const getPreferredBadge = useSelector(getPreferredBadgeSelector);
|
|
|
|
const hasAppExpired = useSelector(hasExpired);
|
|
|
|
const hasNetworkDialog = useSelector(getHasNetworkDialog);
|
|
|
|
const hasSearchQuery = useSelector(isSearching);
|
|
|
|
const hasUnsupportedOS = useSelector(isOSUnsupported);
|
|
|
|
const hasUpdateDialog = useSelector(isUpdateDialogVisible);
|
|
|
|
const i18n = useSelector(getIntl);
|
|
|
|
const isMacOS = useSelector(getIsMacOS);
|
|
|
|
const isUpdateDownloaded = useSelector(getIsUpdateDownloaded);
|
|
|
|
const modeSpecificProps = useSelector(getModeSpecificProps);
|
|
|
|
const navTabsCollapsed = useSelector(getNavTabsCollapsed);
|
|
|
|
const preferredWidthFromStorage = useSelector(getPreferredLeftPaneWidth);
|
|
|
|
const selectedConversationId = useSelector(getSelectedConversationId);
|
|
|
|
const showArchived = useSelector(getShowArchived);
|
|
|
|
const targetedMessage = useSelector(getTargetedMessage);
|
|
|
|
const theme = useSelector(getTheme);
|
|
|
|
const usernameCorrupted = useSelector(getUsernameCorrupted);
|
|
|
|
const usernameLinkCorrupted = useSelector(getUsernameLinkCorrupted);
|
|
|
|
|
|
|
|
const {
|
|
|
|
blockConversation,
|
|
|
|
clearGroupCreationError,
|
|
|
|
closeMaximumGroupSizeModal,
|
|
|
|
closeRecommendedGroupSizeModal,
|
|
|
|
composeDeleteAvatarFromDisk,
|
|
|
|
composeReplaceAvatar,
|
|
|
|
composeSaveAvatarToDisk,
|
|
|
|
createGroup,
|
|
|
|
removeConversation,
|
|
|
|
setComposeGroupAvatar,
|
|
|
|
setComposeGroupExpireTimer,
|
|
|
|
setComposeGroupName,
|
|
|
|
setComposeSearchTerm,
|
|
|
|
setComposeSelectedRegion,
|
|
|
|
setIsFetchingUUID,
|
|
|
|
showArchivedConversations,
|
|
|
|
showChooseGroupMembers,
|
|
|
|
showConversation,
|
|
|
|
showFindByPhoneNumber,
|
|
|
|
showFindByUsername,
|
|
|
|
showInbox,
|
|
|
|
startComposing,
|
|
|
|
startSettingGroupMetadata,
|
|
|
|
toggleComposeEditingAvatar,
|
|
|
|
toggleConversationInChooseMembers,
|
|
|
|
} = useConversationsActions();
|
|
|
|
const {
|
|
|
|
clearConversationSearch,
|
|
|
|
clearSearch,
|
|
|
|
searchInConversation,
|
|
|
|
startSearch,
|
|
|
|
updateSearchTerm,
|
|
|
|
} = useSearchActions();
|
|
|
|
const {
|
|
|
|
onOutgoingAudioCallInConversation,
|
|
|
|
onOutgoingVideoCallInConversation,
|
|
|
|
} = useCallingActions();
|
|
|
|
const { openUsernameReservationModal } = useUsernameActions();
|
|
|
|
const { savePreferredLeftPaneWidth, toggleNavTabsCollapse } =
|
|
|
|
useItemsActions();
|
|
|
|
const { setChallengeStatus } = useNetworkActions();
|
|
|
|
const { showUserNotFoundModal, toggleProfileEditor } =
|
|
|
|
useGlobalModalActions();
|
2023-01-18 23:31:10 +00:00
|
|
|
|
|
|
|
let hasExpiredDialog = false;
|
|
|
|
let unsupportedOSDialogType: 'error' | 'warning' | undefined;
|
2024-03-13 20:44:13 +00:00
|
|
|
if (hasAppExpired) {
|
2023-01-18 23:31:10 +00:00
|
|
|
if (hasUnsupportedOS) {
|
|
|
|
unsupportedOSDialogType = 'error';
|
|
|
|
} else {
|
|
|
|
hasExpiredDialog = true;
|
|
|
|
}
|
|
|
|
} else if (hasUnsupportedOS) {
|
|
|
|
unsupportedOSDialogType = 'warning';
|
|
|
|
}
|
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
const hasRelinkDialog = !isRegistrationDone();
|
2024-01-29 20:09:54 +00:00
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
const renderToastManager =
|
|
|
|
composerStep == null && !showArchived && !hasSearchQuery
|
|
|
|
? renderToastManagerWithMegaphone
|
|
|
|
: renderToastManagerWithoutMegaphone;
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
const targetedMessageId = targetedMessage?.id;
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2024-03-13 20:44:13 +00:00
|
|
|
return (
|
|
|
|
<LeftPane
|
|
|
|
blockConversation={blockConversation}
|
|
|
|
challengeStatus={challengeStatus}
|
|
|
|
clearConversationSearch={clearConversationSearch}
|
|
|
|
clearGroupCreationError={clearGroupCreationError}
|
|
|
|
clearSearch={clearSearch}
|
|
|
|
closeMaximumGroupSizeModal={closeMaximumGroupSizeModal}
|
|
|
|
closeRecommendedGroupSizeModal={closeRecommendedGroupSizeModal}
|
|
|
|
composeDeleteAvatarFromDisk={composeDeleteAvatarFromDisk}
|
|
|
|
composeReplaceAvatar={composeReplaceAvatar}
|
|
|
|
composeSaveAvatarToDisk={composeSaveAvatarToDisk}
|
|
|
|
crashReportCount={crashReportCount}
|
|
|
|
createGroup={createGroup}
|
|
|
|
getPreferredBadge={getPreferredBadge}
|
|
|
|
hasExpiredDialog={hasExpiredDialog}
|
|
|
|
hasFailedStorySends={hasFailedStorySends}
|
|
|
|
hasNetworkDialog={hasNetworkDialog}
|
|
|
|
hasPendingUpdate={hasPendingUpdate}
|
|
|
|
hasRelinkDialog={hasRelinkDialog}
|
|
|
|
hasUpdateDialog={hasUpdateDialog}
|
|
|
|
i18n={i18n}
|
|
|
|
isMacOS={isMacOS}
|
|
|
|
isUpdateDownloaded={isUpdateDownloaded}
|
|
|
|
lookupConversationWithoutServiceId={lookupConversationWithoutServiceId}
|
|
|
|
modeSpecificProps={modeSpecificProps}
|
|
|
|
navTabsCollapsed={navTabsCollapsed}
|
|
|
|
onOutgoingAudioCallInConversation={onOutgoingAudioCallInConversation}
|
|
|
|
onOutgoingVideoCallInConversation={onOutgoingVideoCallInConversation}
|
|
|
|
openUsernameReservationModal={openUsernameReservationModal}
|
|
|
|
otherTabsUnreadStats={otherTabsUnreadStats}
|
|
|
|
preferredWidthFromStorage={preferredWidthFromStorage}
|
|
|
|
removeConversation={removeConversation}
|
|
|
|
renderCaptchaDialog={renderCaptchaDialog}
|
|
|
|
renderCrashReportDialog={renderCrashReportDialog}
|
|
|
|
renderExpiredBuildDialog={renderExpiredBuildDialog}
|
|
|
|
renderMessageSearchResult={renderMessageSearchResult}
|
|
|
|
renderNetworkStatus={renderNetworkStatus}
|
|
|
|
renderRelinkDialog={renderRelinkDialog}
|
|
|
|
renderToastManager={renderToastManager}
|
|
|
|
renderUnsupportedOSDialog={renderUnsupportedOSDialog}
|
|
|
|
renderUpdateDialog={renderUpdateDialog}
|
|
|
|
savePreferredLeftPaneWidth={savePreferredLeftPaneWidth}
|
|
|
|
searchInConversation={searchInConversation}
|
|
|
|
selectedConversationId={selectedConversationId}
|
|
|
|
setChallengeStatus={setChallengeStatus}
|
|
|
|
setComposeGroupAvatar={setComposeGroupAvatar}
|
|
|
|
setComposeGroupExpireTimer={setComposeGroupExpireTimer}
|
|
|
|
setComposeGroupName={setComposeGroupName}
|
|
|
|
setComposeSearchTerm={setComposeSearchTerm}
|
|
|
|
setComposeSelectedRegion={setComposeSelectedRegion}
|
|
|
|
setIsFetchingUUID={setIsFetchingUUID}
|
|
|
|
showArchivedConversations={showArchivedConversations}
|
|
|
|
showChooseGroupMembers={showChooseGroupMembers}
|
|
|
|
showConversation={showConversation}
|
|
|
|
showFindByPhoneNumber={showFindByPhoneNumber}
|
|
|
|
showFindByUsername={showFindByUsername}
|
|
|
|
showInbox={showInbox}
|
|
|
|
showUserNotFoundModal={showUserNotFoundModal}
|
|
|
|
startComposing={startComposing}
|
|
|
|
startSearch={startSearch}
|
|
|
|
startSettingGroupMetadata={startSettingGroupMetadata}
|
|
|
|
targetedMessageId={targetedMessageId}
|
|
|
|
theme={theme}
|
|
|
|
toggleComposeEditingAvatar={toggleComposeEditingAvatar}
|
|
|
|
toggleConversationInChooseMembers={toggleConversationInChooseMembers}
|
|
|
|
toggleNavTabsCollapse={toggleNavTabsCollapse}
|
|
|
|
toggleProfileEditor={toggleProfileEditor}
|
|
|
|
unsupportedOSDialogType={unsupportedOSDialogType}
|
|
|
|
updateSearchTerm={updateSearchTerm}
|
|
|
|
usernameCorrupted={usernameCorrupted}
|
|
|
|
usernameLinkCorrupted={usernameLinkCorrupted}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
});
|