Use new js-sdk types properly

This commit is contained in:
Michael Telatynski 2021-06-18 16:18:42 +01:00
parent 058cbbbd0c
commit 3b7c92fd9e
2 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ export class BanList {
if (!room) return;
for (const eventType of ALL_RULE_TYPES) {
const events = room.currentState.getStateEvents(eventType, undefined);
const events = room.currentState.getStateEvents(eventType);
for (const ev of events) {
if (!ev.getStateKey()) continue;