Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -22,14 +22,12 @@ import type { SafetyNumberProps } from '../../components/SafetyNumberChangeDialo
|
|||
const mapStateToProps = (state: StateType) => {
|
||||
return {
|
||||
...state.app,
|
||||
conversationsStoppingMessageSendBecauseOfVerification: getConversationsStoppingMessageSendBecauseOfVerification(
|
||||
state
|
||||
),
|
||||
conversationsStoppingMessageSendBecauseOfVerification:
|
||||
getConversationsStoppingMessageSendBecauseOfVerification(state),
|
||||
i18n: getIntl(state),
|
||||
isCustomizingPreferredReactions: getIsCustomizingPreferredReactions(state),
|
||||
numberOfMessagesPendingBecauseOfVerification: getNumberOfMessagesPendingBecauseOfVerification(
|
||||
state
|
||||
),
|
||||
numberOfMessagesPendingBecauseOfVerification:
|
||||
getNumberOfMessagesPendingBecauseOfVerification(state),
|
||||
renderCallManager: () => <SmartCallManager />,
|
||||
renderCustomizingPreferredReactionsModal: () => (
|
||||
<SmartCustomizingPreferredReactionsModal />
|
||||
|
|
|
@ -44,9 +44,8 @@ function renderSafetyNumberViewer(props: SafetyNumberViewerProps): JSX.Element {
|
|||
return <SmartSafetyNumberViewer {...props} />;
|
||||
}
|
||||
|
||||
const getGroupCallVideoFrameSource = callingService.getGroupCallVideoFrameSource.bind(
|
||||
callingService
|
||||
);
|
||||
const getGroupCallVideoFrameSource =
|
||||
callingService.getGroupCallVideoFrameSource.bind(callingService);
|
||||
|
||||
async function notifyForCall(
|
||||
title: string,
|
||||
|
|
|
@ -44,12 +44,8 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
throw new Error(`Conversation id ${id} not found!`);
|
||||
}
|
||||
|
||||
const {
|
||||
announcementsOnly,
|
||||
areWeAdmin,
|
||||
draftText,
|
||||
draftBodyRanges,
|
||||
} = conversation;
|
||||
const { announcementsOnly, areWeAdmin, draftText, draftBodyRanges } =
|
||||
conversation;
|
||||
|
||||
const receivedPacks = getReceivedStickerPacks(state);
|
||||
const installedPacks = getInstalledStickerPacks(state);
|
||||
|
@ -125,9 +121,8 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
conversationType: conversation.type,
|
||||
isSMSOnly: Boolean(isConversationSMSOnly(conversation)),
|
||||
isFetchingUUID: conversation.isFetchingUUID,
|
||||
isMissingMandatoryProfileSharing: isMissingRequiredProfileSharing(
|
||||
conversation
|
||||
),
|
||||
isMissingMandatoryProfileSharing:
|
||||
isMissingRequiredProfileSharing(conversation),
|
||||
// Groups
|
||||
announcementsOnly,
|
||||
areWeAdmin,
|
||||
|
|
|
@ -107,9 +107,8 @@ const mapStateToProps = (state: StateType, ownProps: OwnProps) => {
|
|||
]),
|
||||
badge: getPreferredBadgeSelector(state)(conversation.badges),
|
||||
conversationTitle: state.conversations.selectedConversationTitle,
|
||||
isMissingMandatoryProfileSharing: isMissingRequiredProfileSharing(
|
||||
conversation
|
||||
),
|
||||
isMissingMandatoryProfileSharing:
|
||||
isMissingRequiredProfileSharing(conversation),
|
||||
isSMSOnly: isConversationSMSOnly(conversation),
|
||||
i18n: getIntl(state),
|
||||
showBackButton: state.conversations.selectedConversationPanelDepth > 0,
|
||||
|
|
|
@ -17,11 +17,8 @@ export type OwnProps = {
|
|||
};
|
||||
|
||||
const mapStateToProps = (state: StateType, props: OwnProps) => {
|
||||
const {
|
||||
conversationId,
|
||||
setDontNotifyForMentionsIfMuted,
|
||||
setMuteExpiration,
|
||||
} = props;
|
||||
const { conversationId, setDontNotifyForMentionsIfMuted, setMuteExpiration } =
|
||||
props;
|
||||
|
||||
const conversationSelector = getConversationByIdSelector(state);
|
||||
const conversation = conversationSelector(conversationId);
|
||||
|
|
|
@ -43,11 +43,8 @@ export type PropsType = {
|
|||
};
|
||||
|
||||
const mapStateToProps = (_state: StateType, props: PropsType) => {
|
||||
const {
|
||||
compositionAreaProps,
|
||||
conversationHeaderProps,
|
||||
timelineProps,
|
||||
} = props;
|
||||
const { compositionAreaProps, conversationHeaderProps, timelineProps } =
|
||||
props;
|
||||
|
||||
return {
|
||||
renderCompositionArea: () => (
|
||||
|
|
|
@ -28,9 +28,8 @@ export const SmartReactionPicker = React.forwardRef<
|
|||
HTMLDivElement,
|
||||
ExternalProps
|
||||
>((props, ref) => {
|
||||
const {
|
||||
openCustomizePreferredReactionsModal,
|
||||
} = usePreferredReactionsActions();
|
||||
const { openCustomizePreferredReactionsModal } =
|
||||
usePreferredReactionsActions();
|
||||
const { onSetSkinTone } = useItemsActions();
|
||||
|
||||
const i18n = useSelector<StateType, LocalizerType>(getIntl);
|
||||
|
|
|
@ -177,9 +177,8 @@ const getWarning = (
|
|||
switch (conversation.type) {
|
||||
case 'direct':
|
||||
if (!conversation.acceptedMessageRequest && !conversation.isBlocked) {
|
||||
const getConversationsWithTitle = getConversationsByTitleSelector(
|
||||
state
|
||||
);
|
||||
const getConversationsWithTitle =
|
||||
getConversationsByTitleSelector(state);
|
||||
const conversationsWithSameTitle = getConversationsWithTitle(
|
||||
conversation.title
|
||||
);
|
||||
|
@ -221,9 +220,8 @@ const getWarning = (
|
|||
type: ContactSpoofingType.MultipleGroupMembersWithSameTitle,
|
||||
acknowledgedGroupNameCollisions:
|
||||
conversation.acknowledgedGroupNameCollisions || {},
|
||||
groupNameCollisions: dehydrateCollisionsWithConversations(
|
||||
groupNameCollisions
|
||||
),
|
||||
groupNameCollisions:
|
||||
dehydrateCollisionsWithConversations(groupNameCollisions),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -308,9 +306,8 @@ const mapStateToProps = (state: StateType, props: ExternalProps) => {
|
|||
!conversation.acceptedMessageRequest
|
||||
),
|
||||
...conversationMessages,
|
||||
invitedContactsForNewlyCreatedGroup: getInvitedContactsForNewlyCreatedGroup(
|
||||
state
|
||||
),
|
||||
invitedContactsForNewlyCreatedGroup:
|
||||
getInvitedContactsForNewlyCreatedGroup(state),
|
||||
selectedMessageId: selectedMessage ? selectedMessage.id : undefined,
|
||||
|
||||
warning: getWarning(conversation, state),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue