Update message reporting to use sender ACI instead of E164

This commit is contained in:
Chris Eager 2022-04-12 12:54:04 -07:00 committed by GitHub
parent 8f630a52b5
commit 2f5e4f1b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 129 additions and 13 deletions

View file

@ -29,9 +29,9 @@ describe('addReportSpamJob', () => {
};
});
it('does nothing if the conversation lacks an E164', async () => {
it('does nothing if the conversation lacks a UUID', async () => {
await addReportSpamJob({
conversation: getDefaultConversation({ e164: undefined }),
conversation: getDefaultConversation({ uuid: undefined }),
getMessageServerGuidsForSpam,
jobQueue,
});
@ -66,7 +66,7 @@ describe('addReportSpamJob', () => {
sinon.assert.calledOnce(jobQueue.add);
sinon.assert.calledWith(jobQueue.add, {
e164: conversation.e164,
uuid: conversation.uuid,
serverGuids: ['abc', 'xyz'],
});
});