Remove messageCollection from Conversation model

This commit is contained in:
Scott Nonnenberg
2021-06-15 17:44:14 -07:00
committed by GitHub
parent 61ad1231df
commit 1520c80013
19 changed files with 332 additions and 431 deletions

View File

@@ -615,11 +615,11 @@ describe('Backup', () => {
);
console.log('Backup test: Check messages');
const messageCollection = await window.Signal.Data._getAllMessages({
const messages = await window.Signal.Data._getAllMessages({
MessageCollection: Whisper.MessageCollection,
});
assert.strictEqual(messageCollection.length, MESSAGE_COUNT);
const messageFromDB = removeId(messageCollection.at(0).attributes);
assert.strictEqual(messages.length, MESSAGE_COUNT);
const messageFromDB = removeId(messages.at(0).attributes);
const expectedMessage = messageFromDB;
console.log({ messageFromDB, expectedMessage });
assert.deepEqual(messageFromDB, expectedMessage);