Retry delivery and read receipts for up to 24 hours

This commit is contained in:
Evan Hahn 2021-12-07 16:41:40 -06:00 committed by GitHub
parent e81821f4a6
commit f9e98836b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 316 additions and 243 deletions

10
ts/window.d.ts vendored
View file

@ -35,6 +35,7 @@ import { getEnvironment } from './environment';
import * as zkgroup from './util/zkgroup';
import { LocalizerType, BodyRangesType, BodyRangeType } from './types/Util';
import * as EmbeddedContact from './types/EmbeddedContact';
import type { Receipt } from './types/Receipt';
import * as Errors from './types/errors';
import { ConversationController } from './ConversationController';
import { ReduxActions } from './state/types';
@ -523,13 +524,6 @@ export class CanvasVideoRenderer {
constructor(canvas: Ref<HTMLCanvasElement>);
}
export type DeliveryReceiptBatcherItemType = {
messageId: string;
source?: string;
sourceUuid?: string;
timestamp: number;
};
export class AnyViewClass extends window.Backbone.View<any> {
public headerTitle?: string;
static show(view: typeof AnyViewClass, element: Element): void;
@ -551,7 +545,7 @@ export type WhisperType = {
WallClockListener: WhatIsThis;
deliveryReceiptQueue: PQueue;
deliveryReceiptBatcher: BatcherType<DeliveryReceiptBatcherItemType>;
deliveryReceiptBatcher: BatcherType<Receipt>;
events: Backbone.Events;
activeConfirmationView: WhatIsThis;