Update backup protos

This commit is contained in:
Fedor Indutny 2024-07-31 06:43:26 -07:00 committed by GitHub
parent 63d38ac55d
commit c5ce9cd880
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 63 additions and 9 deletions

View file

@ -13,6 +13,7 @@ import { DataWriter } from '../../sql/Client';
import { generateAci } from '../../types/ServiceId';
import { PaymentEventKind } from '../../types/Payment';
import { ContactFormType } from '../../types/EmbeddedContact';
import { MessageRequestResponseEvent } from '../../types/MessageRequestResponseEvent';
import { DurationInSeconds } from '../../util/durations';
import { ReadStatus } from '../../messages/MessageReadStatus';
import { SeenStatus } from '../../MessageSeenStatus';
@ -542,4 +543,20 @@ describe('backup/non-bubble messages', () => {
]
);
});
it('roundtrips spam report message', async () => {
await symmetricRoundtripHarness([
{
conversationId: contactA.id,
id: generateGuid(),
type: 'message-request-response-event',
received_at: 1,
sourceServiceId: CONTACT_A,
sourceDevice: 1,
sent_at: 1,
timestamp: 1,
messageRequestResponseEvent: MessageRequestResponseEvent.SPAM,
},
]);
});
});