Remove another unused string
This commit is contained in:
parent
9e62bd8ca6
commit
aa5dabd1d8
10 changed files with 7 additions and 58 deletions
|
|
@ -953,7 +953,7 @@
|
||||||
},
|
},
|
||||||
"icu:noSearchResults--sms-only": {
|
"icu:noSearchResults--sms-only": {
|
||||||
"messageformat": "SMS/MMS contacts are not available on Desktop.",
|
"messageformat": "SMS/MMS contacts are not available on Desktop.",
|
||||||
"description": "Shown in the search left pane when no results were found and primary device has SMS/MMS handling enabled"
|
"description": "(Deleted 2025/02/06) Shown in the search left pane when no results were found and primary device has SMS/MMS handling enabled"
|
||||||
},
|
},
|
||||||
"icu:noSearchResultsInConversation": {
|
"icu:noSearchResultsInConversation": {
|
||||||
"messageformat": "No results for \"{searchTerm}\" in {conversationName}",
|
"messageformat": "No results for \"{searchTerm}\" in {conversationName}",
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ message AccountRecord {
|
||||||
repeated PinnedConversation pinnedConversations = 14;
|
repeated PinnedConversation pinnedConversations = 14;
|
||||||
optional bool preferContactAvatars = 15;
|
optional bool preferContactAvatars = 15;
|
||||||
optional uint32 universalExpireTimer = 17;
|
optional uint32 universalExpireTimer = 17;
|
||||||
optional bool primarySendsSms = 18;
|
reserved 18; // primarySendsSms
|
||||||
reserved 19; // deprecatedE164
|
reserved 19; // deprecatedE164
|
||||||
repeated string preferredReactionEmoji = 20;
|
repeated string preferredReactionEmoji = 20;
|
||||||
optional bytes subscriberId = 21;
|
optional bytes subscriberId = 21;
|
||||||
|
|
|
||||||
|
|
@ -970,6 +970,10 @@ export async function startApp(): Promise<void> {
|
||||||
if (window.isBeforeVersion(lastVersion, 'v7.33.0-beta.1')) {
|
if (window.isBeforeVersion(lastVersion, 'v7.33.0-beta.1')) {
|
||||||
await window.storage.remove('masterKeyLastRequestTime');
|
await window.storage.remove('masterKeyLastRequestTime');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.isBeforeVersion(lastVersion, 'v7.43.0-beta.1')) {
|
||||||
|
await window.storage.remove('primarySendsSms');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setAppLoadingScreenMessage(
|
setAppLoadingScreenMessage(
|
||||||
|
|
|
||||||
|
|
@ -561,24 +561,6 @@ export function SearchNoResultsWhenSearchingEverywhere(): JSX.Element {
|
||||||
conversationResults: emptySearchResultsGroup,
|
conversationResults: emptySearchResultsGroup,
|
||||||
contactResults: emptySearchResultsGroup,
|
contactResults: emptySearchResultsGroup,
|
||||||
messageResults: emptySearchResultsGroup,
|
messageResults: emptySearchResultsGroup,
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
|
||||||
})}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function SearchNoResultsWhenSearchingEverywhereSms(): JSX.Element {
|
|
||||||
return (
|
|
||||||
<LeftPaneInContainer
|
|
||||||
{...useProps({
|
|
||||||
modeSpecificProps: {
|
|
||||||
...defaultSearchProps,
|
|
||||||
mode: LeftPaneMode.Search,
|
|
||||||
conversationResults: emptySearchResultsGroup,
|
|
||||||
contactResults: emptySearchResultsGroup,
|
|
||||||
messageResults: emptySearchResultsGroup,
|
|
||||||
primarySendsSms: true,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -596,7 +578,6 @@ export function SearchNoResultsWhenSearchingInAConversation(): JSX.Element {
|
||||||
contactResults: emptySearchResultsGroup,
|
contactResults: emptySearchResultsGroup,
|
||||||
messageResults: emptySearchResultsGroup,
|
messageResults: emptySearchResultsGroup,
|
||||||
searchConversationName: 'Bing Bong',
|
searchConversationName: 'Bing Bong',
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -614,7 +595,6 @@ export function SearchNoResultsUnreadFilterAndQuery(): JSX.Element {
|
||||||
conversationResults: emptySearchResultsGroup,
|
conversationResults: emptySearchResultsGroup,
|
||||||
contactResults: emptySearchResultsGroup,
|
contactResults: emptySearchResultsGroup,
|
||||||
messageResults: emptySearchResultsGroup,
|
messageResults: emptySearchResultsGroup,
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -633,7 +613,6 @@ export function SearchNoResultsUnreadFilterWithoutQuery(): JSX.Element {
|
||||||
conversationResults: emptySearchResultsGroup,
|
conversationResults: emptySearchResultsGroup,
|
||||||
contactResults: emptySearchResultsGroup,
|
contactResults: emptySearchResultsGroup,
|
||||||
messageResults: emptySearchResultsGroup,
|
messageResults: emptySearchResultsGroup,
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -650,7 +629,6 @@ export function SearchAllResultsLoading(): JSX.Element {
|
||||||
conversationResults: { isLoading: true },
|
conversationResults: { isLoading: true },
|
||||||
contactResults: { isLoading: true },
|
contactResults: { isLoading: true },
|
||||||
messageResults: { isLoading: true },
|
messageResults: { isLoading: true },
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -670,7 +648,6 @@ export function SearchSomeResultsLoading(): JSX.Element {
|
||||||
},
|
},
|
||||||
contactResults: { isLoading: true },
|
contactResults: { isLoading: true },
|
||||||
messageResults: { isLoading: true },
|
messageResults: { isLoading: true },
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -690,7 +667,6 @@ export function SearchHasConversationsAndContactsButNotMessages(): JSX.Element {
|
||||||
},
|
},
|
||||||
contactResults: { isLoading: false, results: defaultConversations },
|
contactResults: { isLoading: false, results: defaultConversations },
|
||||||
messageResults: { isLoading: false, results: [] },
|
messageResults: { isLoading: false, results: [] },
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -716,7 +692,6 @@ export function SearchAllResults(): JSX.Element {
|
||||||
{ id: 'msg2', type: 'incoming', conversationId: 'bar' },
|
{ id: 'msg2', type: 'incoming', conversationId: 'bar' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
@ -740,7 +715,6 @@ export function SearchAllResultsUnreadFilter(): JSX.Element {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
results: [],
|
results: [],
|
||||||
},
|
},
|
||||||
primarySendsSms: false,
|
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ export type LeftPaneSearchPropsType = {
|
||||||
type: string;
|
type: string;
|
||||||
}>;
|
}>;
|
||||||
searchConversationName?: string;
|
searchConversationName?: string;
|
||||||
primarySendsSms: boolean;
|
|
||||||
searchTerm: string;
|
searchTerm: string;
|
||||||
filterByUnread: boolean;
|
filterByUnread: boolean;
|
||||||
startSearchCounter: number;
|
startSearchCounter: number;
|
||||||
|
|
@ -62,7 +61,6 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
readonly #searchConversationName?: string;
|
readonly #searchConversationName?: string;
|
||||||
readonly #primarySendsSms: boolean;
|
|
||||||
readonly #searchTerm: string;
|
readonly #searchTerm: string;
|
||||||
readonly #startSearchCounter: number;
|
readonly #startSearchCounter: number;
|
||||||
readonly #searchDisabled: boolean;
|
readonly #searchDisabled: boolean;
|
||||||
|
|
@ -74,7 +72,6 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
||||||
conversationResults,
|
conversationResults,
|
||||||
isSearchingGlobally,
|
isSearchingGlobally,
|
||||||
messageResults,
|
messageResults,
|
||||||
primarySendsSms,
|
|
||||||
searchConversation,
|
searchConversation,
|
||||||
searchConversationName,
|
searchConversationName,
|
||||||
searchDisabled,
|
searchDisabled,
|
||||||
|
|
@ -88,7 +85,6 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
||||||
this.#conversationResults = conversationResults;
|
this.#conversationResults = conversationResults;
|
||||||
this.#isSearchingGlobally = isSearchingGlobally;
|
this.#isSearchingGlobally = isSearchingGlobally;
|
||||||
this.#messageResults = messageResults;
|
this.#messageResults = messageResults;
|
||||||
this.#primarySendsSms = primarySendsSms;
|
|
||||||
this.#searchConversation = searchConversation;
|
this.#searchConversation = searchConversation;
|
||||||
this.#searchConversationName = searchConversationName;
|
this.#searchConversationName = searchConversationName;
|
||||||
this.#searchDisabled = searchDisabled;
|
this.#searchDisabled = searchDisabled;
|
||||||
|
|
@ -152,7 +148,6 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchTerm = this.#searchTerm;
|
const searchTerm = this.#searchTerm;
|
||||||
const primarySendsSms = this.#primarySendsSms;
|
|
||||||
const searchConversationName = this.#searchConversationName;
|
const searchConversationName = this.#searchConversationName;
|
||||||
|
|
||||||
let noResults: ReactChild;
|
let noResults: ReactChild;
|
||||||
|
|
@ -193,11 +188,6 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div>{noResultsMessage}</div>
|
<div>{noResultsMessage}</div>
|
||||||
{primarySendsSms && (
|
|
||||||
<div className="module-left-pane__no-search-results__sms-only">
|
|
||||||
{i18n('icu:noSearchResults--sms-only')}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -308,11 +308,6 @@ export function toAccountRecord(
|
||||||
accountRecord.preferContactAvatars = Boolean(preferContactAvatars);
|
accountRecord.preferContactAvatars = Boolean(preferContactAvatars);
|
||||||
}
|
}
|
||||||
|
|
||||||
const primarySendsSms = window.storage.get('primarySendsSms');
|
|
||||||
if (primarySendsSms !== undefined) {
|
|
||||||
accountRecord.primarySendsSms = Boolean(primarySendsSms);
|
|
||||||
}
|
|
||||||
|
|
||||||
const rawPreferredReactionEmoji = window.storage.get(
|
const rawPreferredReactionEmoji = window.storage.get(
|
||||||
'preferredReactionEmoji'
|
'preferredReactionEmoji'
|
||||||
);
|
);
|
||||||
|
|
@ -1333,7 +1328,6 @@ export async function mergeAccountRecord(
|
||||||
sealedSenderIndicators,
|
sealedSenderIndicators,
|
||||||
typingIndicators,
|
typingIndicators,
|
||||||
preferContactAvatars,
|
preferContactAvatars,
|
||||||
primarySendsSms,
|
|
||||||
universalExpireTimer,
|
universalExpireTimer,
|
||||||
preferredReactionEmoji: rawPreferredReactionEmoji,
|
preferredReactionEmoji: rawPreferredReactionEmoji,
|
||||||
subscriberId,
|
subscriberId,
|
||||||
|
|
@ -1377,10 +1371,6 @@ export async function mergeAccountRecord(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof primarySendsSms === 'boolean') {
|
|
||||||
await window.storage.put('primarySendsSms', primarySendsSms);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (preferredReactionEmoji.canBeSynced(rawPreferredReactionEmoji)) {
|
if (preferredReactionEmoji.canBeSynced(rawPreferredReactionEmoji)) {
|
||||||
const localPreferredReactionEmoji =
|
const localPreferredReactionEmoji =
|
||||||
window.storage.get('preferredReactionEmoji') || [];
|
window.storage.get('preferredReactionEmoji') || [];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
// Copyright 2019 Signal Messenger, LLC
|
// Copyright 2019 Signal Messenger, LLC
|
||||||
// SPDX-License-Identifier: AGPL-3.0-only
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import { get } from 'lodash';
|
|
||||||
import React, { memo } from 'react';
|
import React, { memo } from 'react';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
import type { PropsType as DialogExpiredBuildPropsType } from '../../components/DialogExpiredBuild';
|
import type { PropsType as DialogExpiredBuildPropsType } from '../../components/DialogExpiredBuild';
|
||||||
|
|
@ -175,14 +174,9 @@ const getModeSpecificProps = (
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (getIsActivelySearching(state)) {
|
if (getIsActivelySearching(state)) {
|
||||||
const primarySendsSms = Boolean(
|
|
||||||
get(state.items, ['primarySendsSms'], false)
|
|
||||||
);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mode: LeftPaneMode.Search,
|
mode: LeftPaneMode.Search,
|
||||||
isSearchingGlobally: getIsSearchingGlobally(state),
|
isSearchingGlobally: getIsSearchingGlobally(state),
|
||||||
primarySendsSms,
|
|
||||||
searchConversation: getSearchConversation(state),
|
searchConversation: getSearchConversation(state),
|
||||||
searchDisabled: state.network.challengeStatus !== 'idle',
|
searchDisabled: state.network.challengeStatus !== 'idle',
|
||||||
startSearchCounter: getStartSearchCounter(state),
|
startSearchCounter: getStartSearchCounter(state),
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ describe('LeftPaneArchiveHelper', () => {
|
||||||
contactResults: { isLoading: false, results: [] },
|
contactResults: { isLoading: false, results: [] },
|
||||||
messageResults: { isLoading: false, results: [] },
|
messageResults: { isLoading: false, results: [] },
|
||||||
searchTerm: 'foo',
|
searchTerm: 'foo',
|
||||||
primarySendsSms: false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ const baseSearchHelperArgs = {
|
||||||
messageResults: { isLoading: false, results: [] },
|
messageResults: { isLoading: false, results: [] },
|
||||||
isSearchingGlobally: true,
|
isSearchingGlobally: true,
|
||||||
searchTerm: 'foo',
|
searchTerm: 'foo',
|
||||||
primarySendsSms: false,
|
|
||||||
searchConversation: undefined,
|
searchConversation: undefined,
|
||||||
searchDisabled: false,
|
searchDisabled: false,
|
||||||
startSearchCounter: 0,
|
startSearchCounter: 0,
|
||||||
|
|
@ -83,7 +82,6 @@ describe('LeftPaneSearchHelper', () => {
|
||||||
messageResults: { isLoading: false, results: [] },
|
messageResults: { isLoading: false, results: [] },
|
||||||
isSearchingGlobally: true,
|
isSearchingGlobally: true,
|
||||||
searchTerm: 'foo',
|
searchTerm: 'foo',
|
||||||
primarySendsSms: false,
|
|
||||||
searchConversation: undefined,
|
searchConversation: undefined,
|
||||||
searchDisabled: false,
|
searchDisabled: false,
|
||||||
startSearchCounter: 0,
|
startSearchCounter: 0,
|
||||||
|
|
|
||||||
2
ts/types/Storage.d.ts
vendored
2
ts/types/Storage.d.ts
vendored
|
|
@ -124,7 +124,6 @@ export type StorageAccessType = {
|
||||||
phoneNumberDiscoverability: PhoneNumberDiscoverability;
|
phoneNumberDiscoverability: PhoneNumberDiscoverability;
|
||||||
pinnedConversationIds: ReadonlyArray<string>;
|
pinnedConversationIds: ReadonlyArray<string>;
|
||||||
preferContactAvatars: boolean;
|
preferContactAvatars: boolean;
|
||||||
primarySendsSms: boolean;
|
|
||||||
textFormatting: boolean;
|
textFormatting: boolean;
|
||||||
typingIndicators: boolean;
|
typingIndicators: boolean;
|
||||||
sealedSenderIndicators: boolean;
|
sealedSenderIndicators: boolean;
|
||||||
|
|
@ -226,6 +225,7 @@ export type StorageAccessType = {
|
||||||
hasRegisterSupportForUnauthenticatedDelivery: never;
|
hasRegisterSupportForUnauthenticatedDelivery: never;
|
||||||
masterKeyLastRequestTime: never;
|
masterKeyLastRequestTime: never;
|
||||||
versionedExpirationTimer: never;
|
versionedExpirationTimer: never;
|
||||||
|
primarySendsSms: never;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type StorageInterface = {
|
export type StorageInterface = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue