Rename remote config flag

This commit is contained in:
Fedor Indutny 2022-08-17 15:06:17 -07:00 committed by GitHub
parent 260ae89489
commit 15714f35ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -191,7 +191,7 @@
"@babel/preset-typescript": "7.17.12",
"@electron/fuses": "1.5.0",
"@mixer/parallel-prettier": "2.0.1",
"@signalapp/mock-server": "2.7.0",
"@signalapp/mock-server": "2.8.0",
"@storybook/addon-a11y": "6.5.6",
"@storybook/addon-actions": "6.5.6",
"@storybook/addon-controls": "6.5.6",

View file

@ -16,7 +16,7 @@ export type ConfigKeyType =
| 'desktop.mediaQuality.levels'
| 'desktop.messageCleanup'
| 'desktop.messageRequests'
| 'desktop.pnp.storageService'
| 'desktop.pnp'
| 'desktop.retryReceiptLifespan'
| 'desktop.retryRespondMaxAge'
| 'desktop.senderKey.retry'

View file

@ -139,7 +139,7 @@ export async function toContactRecord(
contactRecord.serviceE164 = e164;
}
const pni = conversation.get('pni');
if (pni && RemoteConfig.isEnabled('desktop.pnp.storageService')) {
if (pni && RemoteConfig.isEnabled('desktop.pnp')) {
contactRecord.pni = pni;
}
const profileKey = conversation.get('profileKey');
@ -852,7 +852,7 @@ export async function mergeContactRecord(
: undefined,
};
const isPniSupported = RemoteConfig.isEnabled('desktop.pnp.storageService');
const isPniSupported = RemoteConfig.isEnabled('desktop.pnp');
const e164 = dropNull(contactRecord.serviceE164);
const uuid = dropNull(contactRecord.serviceUuid);

View file

@ -1753,10 +1753,10 @@
node-gyp-build "^4.2.3"
uuid "^8.3.0"
"@signalapp/mock-server@2.7.0":
version "2.7.0"
resolved "https://registry.yarnpkg.com/@signalapp/mock-server/-/mock-server-2.7.0.tgz#92c6538c44eb6001f7fb5b85cb1c41ad1d4a64bc"
integrity sha512-Adf+EOs/YesNQ4ZsxVxAdhFjtVd4f246RwADMD6A50X4hrp78eW2WkFpZ7fWDMy3ZIRiNa87aZXRbWEzFEzIzA==
"@signalapp/mock-server@2.8.0":
version "2.8.0"
resolved "https://registry.yarnpkg.com/@signalapp/mock-server/-/mock-server-2.8.0.tgz#c3228d9bf2ab5d40f51a6eeb77ddea786898cdf4"
integrity sha512-IVAA3Qm/Tc61WEyk+45J4M08lY2vYly3rRAA+LhWIhE3Uo/4T40vQ3EswAtlGY7KiWG2N1C7B1i9VSCkPCENyQ==
dependencies:
"@signalapp/libsignal-client" "^0.19.2"
debug "^4.3.2"