mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-09 19:56:44 +01:00
this should be a map
This commit is contained in:
parent
b2e6310775
commit
c8e4dbc1b3
@ -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…
x
Reference in New Issue
Block a user