Remove desktop.retryReceiptLifespan feature flag
This commit is contained in:
parent
46942ece00
commit
e0fa526131
2 changed files with 2 additions and 18 deletions
|
@ -28,7 +28,6 @@ export type ConfigKeyType =
|
||||||
| 'desktop.messageCleanup'
|
| 'desktop.messageCleanup'
|
||||||
| 'desktop.messageRequests'
|
| 'desktop.messageRequests'
|
||||||
| 'desktop.pnp'
|
| 'desktop.pnp'
|
||||||
| 'desktop.retryReceiptLifespan'
|
|
||||||
| 'desktop.retryRespondMaxAge'
|
| 'desktop.retryRespondMaxAge'
|
||||||
| 'desktop.safetyNumberUUID.timestamp'
|
| 'desktop.safetyNumberUUID.timestamp'
|
||||||
| 'desktop.safetyNumberUUID'
|
| 'desktop.safetyNumberUUID'
|
||||||
|
|
|
@ -180,7 +180,7 @@ import { StartupQueue } from './util/StartupQueue';
|
||||||
import { showConfirmationDialog } from './util/showConfirmationDialog';
|
import { showConfirmationDialog } from './util/showConfirmationDialog';
|
||||||
import { onCallEventSync } from './util/onCallEventSync';
|
import { onCallEventSync } from './util/onCallEventSync';
|
||||||
import { sleeper } from './util/sleeper';
|
import { sleeper } from './util/sleeper';
|
||||||
import { MINUTE } from './util/durations';
|
import { DAY, HOUR, MINUTE } from './util/durations';
|
||||||
import { copyDataMessageIntoMessage } from './util/copyDataMessageIntoMessage';
|
import { copyDataMessageIntoMessage } from './util/copyDataMessageIntoMessage';
|
||||||
import {
|
import {
|
||||||
flushMessageCounter,
|
flushMessageCounter,
|
||||||
|
@ -194,7 +194,6 @@ import { makeLookup } from './util/makeLookup';
|
||||||
import { focusableSelectors } from './util/focusableSelectors';
|
import { focusableSelectors } from './util/focusableSelectors';
|
||||||
|
|
||||||
export function isOverHourIntoPast(timestamp: number): boolean {
|
export function isOverHourIntoPast(timestamp: number): boolean {
|
||||||
const HOUR = 1000 * 60 * 60;
|
|
||||||
return isNumber(timestamp) && isOlderThan(timestamp, HOUR);
|
return isNumber(timestamp) && isOlderThan(timestamp, HOUR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1002,27 +1001,13 @@ export async function startApp(): Promise<void> {
|
||||||
|
|
||||||
void window.Signal.RemoteConfig.initRemoteConfig(server);
|
void window.Signal.RemoteConfig.initRemoteConfig(server);
|
||||||
|
|
||||||
let retryReceiptLifespan: number | undefined;
|
|
||||||
try {
|
|
||||||
retryReceiptLifespan = parseIntOrThrow(
|
|
||||||
window.Signal.RemoteConfig.getValue('desktop.retryReceiptLifespan'),
|
|
||||||
'retryReceiptLifeSpan'
|
|
||||||
);
|
|
||||||
} catch (error) {
|
|
||||||
log.warn(
|
|
||||||
'Failed to parse integer out of desktop.retryReceiptLifespan feature flag'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const retryPlaceholders = new RetryPlaceholders({
|
const retryPlaceholders = new RetryPlaceholders({
|
||||||
retryReceiptLifespan,
|
retryReceiptLifespan: HOUR,
|
||||||
});
|
});
|
||||||
window.Signal.Services.retryPlaceholders = retryPlaceholders;
|
window.Signal.Services.retryPlaceholders = retryPlaceholders;
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
const HOUR = 1000 * 60 * 60;
|
|
||||||
const DAY = 24 * HOUR;
|
|
||||||
let sentProtoMaxAge = 14 * DAY;
|
let sentProtoMaxAge = 14 * DAY;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue