Drop verified syncs, use storage service for event

This commit is contained in:
Fedor Indutny 2022-04-20 16:41:52 -07:00 committed by GitHub
parent 8c4b875dca
commit da45f26d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 135 deletions

View file

@ -379,25 +379,6 @@ export class StickerPackEvent extends ConfirmableEvent {
}
}
export type VerifiedEventData = Readonly<{
state: Proto.IVerified['state'];
destination?: string;
destinationUuid?: string;
identityKey?: Uint8Array;
// Used in `ts/background.ts`
viaContactSync?: boolean;
}>;
export class VerifiedEvent extends ConfirmableEvent {
constructor(
public readonly verified: VerifiedEventData,
confirm: ConfirmCallback
) {
super('verified', confirm);
}
}
export type ReadSyncEventData = Readonly<{
timestamp?: number;
envelopeTimestamp: number;