On Sender Key distribution message failure, don't update send status
This commit is contained in:
parent
db523f0684
commit
e09d148c1d
4 changed files with 43 additions and 13 deletions
|
@ -204,6 +204,8 @@ export class SendMessageProtoError extends Error implements CallbackResultType {
|
|||
|
||||
public readonly recipients?: Record<string, Array<number>>;
|
||||
|
||||
public readonly sendIsNotFinal?: boolean;
|
||||
|
||||
constructor({
|
||||
successfulIdentifiers,
|
||||
failoverIdentifiers,
|
||||
|
@ -214,6 +216,7 @@ export class SendMessageProtoError extends Error implements CallbackResultType {
|
|||
contentProto,
|
||||
timestamp,
|
||||
recipients,
|
||||
sendIsNotFinal,
|
||||
}: CallbackResultType) {
|
||||
super(`SendMessageProtoError: ${SendMessageProtoError.getMessage(errors)}`);
|
||||
|
||||
|
@ -226,6 +229,7 @@ export class SendMessageProtoError extends Error implements CallbackResultType {
|
|||
this.contentProto = contentProto;
|
||||
this.timestamp = timestamp;
|
||||
this.recipients = recipients;
|
||||
this.sendIsNotFinal = sendIsNotFinal;
|
||||
}
|
||||
|
||||
protected static getMessage(errors: CallbackResultType['errors']): string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue