Cast dispatcher payloads correctly when firing them
This commit is contained in:
parent
d5e70dfaa5
commit
71b356a9a4
4 changed files with 10 additions and 10 deletions
|
@ -157,11 +157,11 @@ export class RoomViewStore extends Store<ActionPayload> {
|
|||
|
||||
// Fired so we can reduce dependency on event emitters to this store, which is relatively
|
||||
// central to the application and can easily cause import cycles.
|
||||
dis.dispatch({
|
||||
dis.dispatch<ActiveRoomChangedPayload>({
|
||||
action: Action.ActiveRoomChanged,
|
||||
oldRoomId: lastRoomId,
|
||||
newRoomId: this.state.roomId,
|
||||
} as ActiveRoomChangedPayload);
|
||||
});
|
||||
}
|
||||
|
||||
this.__emitChange();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue