Move conversations to SQLCipher
This commit is contained in:
parent
8cd3db0262
commit
cd60bdd08a
31 changed files with 1354 additions and 774 deletions
|
@ -40,15 +40,15 @@
|
|||
return message;
|
||||
}
|
||||
|
||||
const groups = new Whisper.GroupCollection();
|
||||
return groups.fetchGroups(reader).then(() => {
|
||||
const ids = groups.pluck('id');
|
||||
ids.push(reader);
|
||||
return messages.find(
|
||||
item =>
|
||||
item.isOutgoing() && _.contains(ids, item.get('conversationId'))
|
||||
);
|
||||
const groups = await window.Signal.Data.getAllGroupsInvolvingId(reader, {
|
||||
ConversationCollection: Whisper.ConversationCollection,
|
||||
});
|
||||
const ids = groups.pluck('id');
|
||||
ids.push(reader);
|
||||
|
||||
return messages.find(
|
||||
item => item.isOutgoing() && _.contains(ids, item.get('conversationId'))
|
||||
);
|
||||
},
|
||||
async onReceipt(receipt) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue