mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
content already exists here
This commit is contained in:
parent
620fc0d210
commit
408ff3322d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user