Use new js-sdk types properly
This commit is contained in:
parent
058cbbbd0c
commit
3b7c92fd9e
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue