Improve message targeting for incoming reactions

This commit is contained in:
trevor-signal 2024-04-29 17:20:20 -04:00 committed by GitHub
parent f02a11bc9b
commit a0b4126b52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 769 additions and 180 deletions

View file

@ -18,7 +18,7 @@ import enMessages from '../../../_locales/en/messages.json';
import { SendStatus } from '../../messages/MessageSendState';
import { SignalService as Proto } from '../../protobuf';
import { generateAci } from '../../types/ServiceId';
import { getContact } from '../../messages/helpers';
import { getAuthor } from '../../messages/helpers';
import { setupI18n } from '../../util/setupI18n';
import {
APPLICATION_JSON,
@ -237,7 +237,7 @@ describe('Message', () => {
describe('getContact', () => {
it('gets outgoing contact', () => {
const message = createMessage(attributes);
assert.exists(getContact(message.attributes));
assert.exists(getAuthor(message.attributes));
});
it('gets incoming contact', () => {
@ -245,7 +245,7 @@ describe('Message', () => {
type: 'incoming',
source,
});
assert.exists(getContact(message.attributes));
assert.exists(getAuthor(message.attributes));
});
});