forked from mystiq/hydrogen-web
Support decryption on entries fetched from hs
This commit is contained in:
parent
7cc3d4b91a
commit
c690de9f7b
1 changed files with 6 additions and 1 deletions
|
@ -571,7 +571,12 @@ export class BaseRoom extends EventEmitter {
|
||||||
displayName: member.content.displayname,
|
displayName: member.content.displayname,
|
||||||
avatarUrl: member.content.avatar_url
|
avatarUrl: member.content.avatar_url
|
||||||
};
|
};
|
||||||
return new NonPersistedEventEntry(entry, this._fragmentIdComparer);
|
const eventEntry = new NonPersistedEventEntry(entry, this._fragmentIdComparer);
|
||||||
|
if (eventEntry.eventType === EVENT_ENCRYPTED_TYPE) {
|
||||||
|
const request = this._decryptEntries(DecryptionSource.Timeline, [eventEntry]);
|
||||||
|
await request.complete();
|
||||||
|
}
|
||||||
|
return eventEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue