fix: ran formatter

pull/3083/head
yougotwill 8 months ago
parent 39d8ad11e5
commit 87b922daff

@ -271,11 +271,7 @@
"StartupWMClass": "Session"
},
"asarUnpack": "node_modules/spellchecker/vendor/hunspell_dictionaries",
"target": [
"deb",
"rpm",
"freebsd"
],
"target": ["deb", "rpm", "freebsd"],
"icon": "build/icon-linux.icns"
},
"asarUnpack": [

@ -4,7 +4,10 @@ import { useIsPrivate, useIsPublic } from '../../../../hooks/useParamSelector';
import { assertUnreachable } from '../../../../types/sqlSharedTypes';
import { Flex } from '../../../basic/Flex';
import { ReadableMessage } from './ReadableMessage';
import { ConversationInteractionStatus, ConversationInteractionType } from '../../../../interactions/types';
import {
ConversationInteractionStatus,
ConversationInteractionType,
} from '../../../../interactions/types';
import { PropsForInteractionNotification } from '../../../../state/ducks/types';
const StyledFailText = styled.div`

@ -45,7 +45,10 @@ import { PanelButtonGroup, PanelIconButton } from '../../../buttons';
import { MediaItemType } from '../../../lightbox/LightboxGallery';
import { MediaGallery } from '../../media-gallery/MediaGallery';
import { Header, StyledScrollContainer } from './components';
import { ConversationInteractionStatus, ConversationInteractionType } from '../../../../interactions/types';
import {
ConversationInteractionStatus,
ConversationInteractionType,
} from '../../../../interactions/types';
async function getMediaGalleryProps(conversationId: string): Promise<{
documents: Array<MediaItemType>;

@ -5,9 +5,7 @@ import useKey from 'react-use/lib/useKey';
import styled from 'styled-components';
import { useLastMessage } from '../../hooks/useParamSelector';
import { MessageInteraction } from '../../interactions';
import {
updateConversationInteractionState,
} from '../../interactions/conversationInteractions';
import { updateConversationInteractionState } from '../../interactions/conversationInteractions';
import { updateConfirmModal } from '../../state/ducks/modalDialog';
import { SessionWrapperModal } from '../SessionWrapperModal';
import { SessionButton, SessionButtonColor, SessionButtonType } from '../basic/SessionButton';

@ -6,7 +6,10 @@ import { useIsPrivate, useIsPublic } from '../../../hooks/useParamSelector';
import { getConversationController } from '../../../session/conversations';
import { assertUnreachable } from '../../../types/sqlSharedTypes';
import { MessageBody } from '../../conversation/message/message-content/MessageBody';
import { ConversationInteractionType, ConversationInteractionStatus } from '../../../interactions/types';
import {
ConversationInteractionType,
ConversationInteractionStatus,
} from '../../../interactions/types';
import { LastMessageType } from '../../../state/ducks/types';
const StyledInteractionItemText = styled.div<{ isError: boolean }>`

@ -53,7 +53,10 @@ import { getIsMessageSection } from '../../state/selectors/section';
import { useSelectedConversationKey } from '../../state/selectors/selectedConversation';
import { LocalizerKeys } from '../../types/LocalizerKeys';
import { SessionButtonColor } from '../basic/SessionButton';
import { ConversationInteractionType, ConversationInteractionStatus } from '../../interactions/types';
import {
ConversationInteractionType,
ConversationInteractionStatus,
} from '../../interactions/types';
/** Menu items standardized */

@ -140,8 +140,6 @@ export const fillConvoAttributesWithDefaults = (
});
};
export const READ_MESSAGE_STATE = {
unread: 1,
read: 0,

@ -4,13 +4,15 @@ import {
DisappearingMessageType,
ExpirationTimerUpdate,
} from '../session/disappearing_messages/types';
import {
PropsForMessageWithConvoProps,
} from '../state/ducks/conversations';
import { PropsForMessageWithConvoProps } from '../state/ducks/conversations';
import { AttachmentTypeWithPath } from '../types/Attachment';
import { Reaction, ReactionList, SortedReactionList } from '../types/Reaction';
import { READ_MESSAGE_STATE } from './conversationAttributes';
import { LastMessageStatusType, CallNotificationType, InteractionNotificationType } from '../state/ducks/types';
import {
LastMessageStatusType,
CallNotificationType,
InteractionNotificationType,
} from '../state/ducks/types';
export type MessageModelType = 'incoming' | 'outgoing';

@ -11,9 +11,7 @@ import {
import { isEmpty, isEqual, isFinite, isNumber } from 'lodash';
import { from_hex } from 'libsodium-wrappers-sumo';
import { MESSAGES_TABLE, toSqliteBoolean } from '../../database_utility';
import {
ConversationAttributes,
} from '../../../models/conversationAttributes';
import { ConversationAttributes } from '../../../models/conversationAttributes';
import { maybeArrayJSONtoArray } from '../../../types/sqlSharedTypes';
import { checkTargetMigration, hasDebugEnvVariable } from '../utils';
import { sqlNode } from '../../sql';

@ -7,9 +7,7 @@ import {
UserGroupsWrapperNode,
} from 'libsession_util_nodejs';
import { compact, isArray, isEmpty, isNil, isString, map, pick } from 'lodash';
import {
ConversationAttributes,
} from '../../models/conversationAttributes';
import { ConversationAttributes } from '../../models/conversationAttributes';
import { fromHexToArray } from '../../session/utils/String';
import { CONFIG_DUMP_TABLE } from '../../types/sqlSharedTypes';
import {

@ -12,11 +12,7 @@ import {
getAllValidOpenGroupV2ConversationRoomInfos,
getOpenGroupV2ConversationId,
} from '../utils/OpenGroupUtils';
import {
ourSogsDomainName,
ourSogsLegacyIp,
ourSogsUrl,
} from './ApiUtil';
import { ourSogsDomainName, ourSogsLegacyIp, ourSogsUrl } from './ApiUtil';
import { OpenGroupServerPoller } from './OpenGroupServerPoller';
import { SessionUtilUserGroups } from '../../../utils/libsession/libsession_utils_user_groups';

@ -1,6 +1,6 @@
import { compact } from 'lodash';
import { OpenGroupData} from '../../../../data/opengroups';
import { OpenGroupData } from '../../../../data/opengroups';
import { OpenGroupMessageV2 } from './OpenGroupMessageV2';
import { UserUtils } from '../../../utils';
import { fromHexToArray } from '../../../utils/String';

@ -1,9 +1,6 @@
import AbortController, { AbortSignal } from 'abort-controller';
import { isFinite, isUndefined, toNumber } from 'lodash';
import {
OpenGroupData,
OpenGroupV2RoomWithImageID,
} from '../../../../data/opengroups';
import { OpenGroupData, OpenGroupV2RoomWithImageID } from '../../../../data/opengroups';
import { MIME } from '../../../../types';
import { processNewAttachment } from '../../../../types/MessageAttachment';
import { roomHasBlindEnabled } from '../../../../types/sqlSharedTypes';

@ -1,5 +1,5 @@
import { isEmpty } from 'lodash';
import { OpenGroupData } from '../../../../data/opengroups';
import { OpenGroupData } from '../../../../data/opengroups';
import { getOpenGroupManager } from '../opengroupV2/OpenGroupManagerV2';
import { SessionUtilUserGroups } from '../../../utils/libsession/libsession_utils_user_groups';
import { getConversationController } from '../../../conversations';

@ -6,7 +6,7 @@ import pRetry from 'p-retry';
import { default as insecureNodeFetch } from 'node-fetch';
import semver from 'semver';
import { Data} from '../../data/data';
import { Data } from '../../data/data';
import * as SnodePool from '../apis/snode_api/snodePool';
import { UserUtils } from '../utils';
import { allowOnlyOneAtATime } from '../utils/Promise';

@ -5,7 +5,6 @@ import { getConversationController } from '../conversations';
import { SyncUtils, UserUtils } from '../utils';
import { fromHexToArray, sanitizeSessionUsername, toHex } from '../utils/String';
import { AvatarDownload } from '../utils/job_runners/jobs/AvatarDownloadJob';
import { generateFakeECKeyPair } from '../../test/test-utils/utils';
import { CONVERSATION_PRIORITIES, ConversationTypeEnum } from '../../models/types';
export type Profile = {
@ -101,8 +100,8 @@ export async function updateOurProfileDisplayName(newName: string, onboarding?:
if (onboarding) {
try {
const tempKeyPair = generateFakeECKeyPair();
await UserConfigWrapperActions.init(tempKeyPair.privateKeyData, null);
// const tempKeyPair = generateFakeECKeyPair();
await UserConfigWrapperActions.init(new Uint8Array(), null);
const userInfoName = await UserConfigWrapperActions.setUserInfo(
cleanName,
CONVERSATION_PRIORITIES.default,

@ -4,9 +4,7 @@ import { omit, toNumber } from 'lodash';
import { ReplyingToMessageProps } from '../../components/conversation/composition/CompositionBox';
import { QuotedAttachmentType } from '../../components/conversation/message/message-content/quote/Quote';
import { Data } from '../../data/data';
import {
ConversationNotificationSettingType,
} from '../../models/conversationAttributes';
import { ConversationNotificationSettingType } from '../../models/conversationAttributes';
import {
MessageModelType,
PropsForDataExtractionNotification,
@ -21,8 +19,12 @@ import {
import { ReactionList } from '../../types/Reaction';
import { resetRightOverlayMode } from './section';
import { CONVERSATION_PRIORITIES, ConversationTypeEnum } from '../../models/types';
import { LastMessageStatusType, LastMessageType, PropsForCallNotification, PropsForInteractionNotification } from './types';
import {
LastMessageStatusType,
LastMessageType,
PropsForCallNotification,
PropsForInteractionNotification,
} from './types';
export type MessageModelPropsWithoutConvoProps = {
propsForMessage: PropsForMessageWithoutConvoProps;

@ -1,4 +1,7 @@
import { ConversationInteractionStatus, ConversationInteractionType } from '../../interactions/types';
import {
ConversationInteractionStatus,
ConversationInteractionType,
} from '../../interactions/types';
export type CallNotificationType = 'missed-call' | 'started-call' | 'answered-a-call';
@ -16,7 +19,6 @@ export type LastMessageType = {
interactionStatus: ConversationInteractionStatus | null;
};
export type InteractionNotificationType = {
interactionType: ConversationInteractionType;
interactionStatus: ConversationInteractionStatus;

@ -2,9 +2,7 @@ import chai, { expect } from 'chai';
import chaiAsPromised from 'chai-as-promised';
import Sinon from 'sinon';
import { Conversation, ConversationModel } from '../../../../models/conversation';
import {
ConversationAttributes,
} from '../../../../models/conversationAttributes';
import { ConversationAttributes } from '../../../../models/conversationAttributes';
import { GetNetworkTime } from '../../../../session/apis/snode_api/getNetworkTime';
import { DisappearingMessages } from '../../../../session/disappearing_messages';
import {

@ -2,9 +2,7 @@ import { expect } from 'chai';
import Sinon from 'sinon';
import { ConversationModel } from '../../../../models/conversation';
import {
ConversationAttributes,
} from '../../../../models/conversationAttributes';
import { ConversationAttributes } from '../../../../models/conversationAttributes';
import { GetNetworkTime } from '../../../../session/apis/snode_api/getNetworkTime';
import { getConversationController } from '../../../../session/conversations';
import { UserUtils } from '../../../../session/utils';

@ -4,9 +4,7 @@ import { LegacyGroupInfo } from 'libsession_util_nodejs';
import { describe } from 'mocha';
import Sinon from 'sinon';
import { ConversationModel } from '../../../../models/conversation';
import {
ConversationAttributes,
} from '../../../../models/conversationAttributes';
import { ConversationAttributes } from '../../../../models/conversationAttributes';
import { GetNetworkTime } from '../../../../session/apis/snode_api/getNetworkTime';
import { getConversationController } from '../../../../session/conversations';
import { UserUtils } from '../../../../session/utils';

@ -3,9 +3,7 @@ import { expect } from 'chai';
import Sinon from 'sinon';
import { ConversationModel } from '../../../../models/conversation';
import {
ConversationAttributes,
} from '../../../../models/conversationAttributes';
import { ConversationAttributes } from '../../../../models/conversationAttributes';
import { GetNetworkTime } from '../../../../session/apis/snode_api/getNetworkTime';
import { getConversationController } from '../../../../session/conversations';
import { UserUtils } from '../../../../session/utils';

Loading…
Cancel
Save