Fix up some more type defs
This commit is contained in:
parent
02e72d8b04
commit
3e38d92fa4
7 changed files with 11 additions and 12 deletions
|
@ -176,7 +176,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
|||
if (!client || !roomId || !room) throw new Error("Not in a room or not attached to a client");
|
||||
|
||||
const results: MatrixEvent[] = [];
|
||||
const state = room.currentState.events.get(eventType);
|
||||
const state: Map<string, MatrixEvent> = room.currentState.events.get(eventType);
|
||||
if (state) {
|
||||
if (stateKey === "" || !!stateKey) {
|
||||
const forKey = state.get(stateKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue