Send proper sync message for edit msg in all contexts

This commit is contained in:
Josh Perez 2023-05-09 21:25:37 -04:00 committed by GitHub
parent 2177a79080
commit 46942ece00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 38 additions and 7 deletions

View file

@ -315,7 +315,10 @@ describe('sendToGroup', () => {
it('returns true for errors inside of SendMessageProtoError', () => {
assert.isTrue(
_shouldFailSend(
new SendMessageProtoError({}),
new SendMessageProtoError({
dataMessage: undefined,
editMessage: undefined,
}),
'testing missing errors list'
)
);
@ -326,7 +329,11 @@ describe('sendToGroup', () => {
assert.isTrue(
_shouldFailSend(
new SendMessageProtoError({ errors: [error] }),
new SendMessageProtoError({
dataMessage: undefined,
editMessage: undefined,
errors: [error],
}),
'testing one error with code'
)
);
@ -334,6 +341,8 @@ describe('sendToGroup', () => {
assert.isTrue(
_shouldFailSend(
new SendMessageProtoError({
dataMessage: undefined,
editMessage: undefined,
errors: [
new Error('something'),
new ConnectTimeoutError('something'),