forked from mystiq/hydrogen-web
this should be a map
This commit is contained in:
parent
b2e6310775
commit
c8e4dbc1b3
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ export class RoomEncryption {
|
||||||
// but we want to be able to map it back to something in the timeline easily
|
// but we want to be able to map it back to something in the timeline easily
|
||||||
// when retrying decryption.
|
// when retrying decryption.
|
||||||
async prepareDecryptAll(events, source, isTimelineOpen, txn) {
|
async prepareDecryptAll(events, source, isTimelineOpen, txn) {
|
||||||
const errors = [];
|
const errors = new Map();
|
||||||
const validEvents = [];
|
const validEvents = [];
|
||||||
for (const event of events) {
|
for (const event of events) {
|
||||||
if (event.redacted_because || event.unsigned?.redacted_because) {
|
if (event.redacted_because || event.unsigned?.redacted_because) {
|
||||||
|
|
Loading…
Reference in a new issue