content already exists here
This commit is contained in:
parent
620fc0d210
commit
408ff3322d
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ export class Encryption {
|
|||
await this._loadSessions(existingEncryptionTargets);
|
||||
encryptionTargets = encryptionTargets.concat(existingEncryptionTargets);
|
||||
const messages = encryptionTargets.map(target => {
|
||||
const content = this._encryptForDevice(type, content, target);
|
||||
return new EncryptedMessage(content, target.device);
|
||||
const encryptedContent = this._encryptForDevice(type, content, target);
|
||||
return new EncryptedMessage(encryptedContent, target.device);
|
||||
});
|
||||
await this._storeSessions(encryptionTargets, timestamp);
|
||||
return messages;
|
||||
|
|
Reference in a new issue