mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
No Backbone in data layer; server/client interfaces are now similar
This commit is contained in:
@@ -12,6 +12,7 @@ import type { CallbackResultType } from '../../textsecure/Types.d';
|
||||
import type { StorageAccessType } from '../../types/Storage.d';
|
||||
import { UUID } from '../../types/UUID';
|
||||
import { SignalService as Proto } from '../../protobuf';
|
||||
import { getContact } from '../../messages/helpers';
|
||||
|
||||
describe('Message', () => {
|
||||
const STORAGE_KEYS_TO_RESTORE: Array<keyof StorageAccessType> = [
|
||||
@@ -204,7 +205,7 @@ describe('Message', () => {
|
||||
it('gets outgoing contact', () => {
|
||||
const messages = new window.Whisper.MessageCollection();
|
||||
const message = messages.add(attributes);
|
||||
message.getContact();
|
||||
assert.exists(getContact(message.attributes));
|
||||
});
|
||||
|
||||
it('gets incoming contact', () => {
|
||||
@@ -213,7 +214,7 @@ describe('Message', () => {
|
||||
type: 'incoming',
|
||||
source,
|
||||
});
|
||||
message.getContact();
|
||||
assert.exists(getContact(message.attributes));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user