Move setVerified to conversation queue

This commit is contained in:
Fedor Indutny 2023-03-09 15:33:12 -08:00 committed by GitHub
parent 26ae1c8a88
commit 371c73377c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 7 deletions

View file

@ -3,6 +3,8 @@
/* eslint-disable max-classes-per-file */
import type { LibSignalErrorBase } from '@signalapp/libsignal-client';
import { parseRetryAfter } from '../util/parseRetryAfter';
import type { CallbackResultType } from './Types.d';
@ -76,12 +78,13 @@ export class OutgoingIdentityKeyError extends ReplayableError {
public readonly identifier: string;
// Note: Data to resend message is no longer captured
constructor(incomingIdentifier: string) {
constructor(incomingIdentifier: string, cause?: LibSignalErrorBase) {
const identifier = incomingIdentifier.split('.')[0];
super({
name: 'OutgoingIdentityKeyError',
message: `The identity of ${identifier} has changed.`,
cause,
});
this.identifier = identifier;