You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Convert CustomStatusController to TS
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2019 New Vector Ltd
|
Copyright 2019 New Vector Ltd
|
||||||
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@@ -16,9 +17,10 @@ limitations under the License.
|
|||||||
|
|
||||||
import SettingController from "./SettingController";
|
import SettingController from "./SettingController";
|
||||||
import dis from "../../dispatcher/dispatcher";
|
import dis from "../../dispatcher/dispatcher";
|
||||||
|
import { SettingLevel } from "../SettingLevel";
|
||||||
|
|
||||||
export default class CustomStatusController extends SettingController {
|
export default class CustomStatusController extends SettingController {
|
||||||
onChange(level, roomId, newValue) {
|
public onChange(level: SettingLevel, roomId: string, newValue: any) {
|
||||||
// Dispatch setting change so that some components that are still visible when the
|
// Dispatch setting change so that some components that are still visible when the
|
||||||
// Settings page is open (such as RoomTiles) can reflect the change.
|
// Settings page is open (such as RoomTiles) can reflect the change.
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
Reference in New Issue
Block a user