Improve error handling during group sends
This commit is contained in:
parent
f0a3735ca2
commit
991580a1ed
58 changed files with 299 additions and 324 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
import { assert } from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import { LibSignalErrorBase } from '@signalapp/libsignal-client';
|
||||
|
||||
import {
|
||||
_analyzeSenderKeyDevices,
|
||||
|
@ -172,7 +173,11 @@ describe('sendToGroup', () => {
|
|||
});
|
||||
|
||||
it("returns true for any error with 'untrusted' identity", async () => {
|
||||
const error = new Error('This was an untrusted identity.');
|
||||
const error = new LibSignalErrorBase(
|
||||
'untrusted identity',
|
||||
'UntrustedIdentity',
|
||||
'ignored'
|
||||
);
|
||||
assert.isTrue(_shouldFailSend(error, 'logId'));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue