matrix-react-sdk
Version:
SDK for matrix.org using React
20 lines (19 loc) • 876 B
TypeScript
import MatrixClientBackedSettingsHandler from "./MatrixClientBackedSettingsHandler";
import { WatchManager } from "../WatchManager";
import { MatrixClient } from "matrix-js-sdk/src/client";
/**
* Gets and sets settings at the "account" level for the current user.
* This handler does not make use of the roomId parameter.
*/
export default class AccountSettingsHandler extends MatrixClientBackedSettingsHandler {
private watchers;
constructor(watchers: WatchManager);
initMatrixClient(oldClient: MatrixClient, newClient: MatrixClient): void;
private onAccountData;
getValue(settingName: string, roomId: string): any;
setValue(settingName: string, roomId: string, newValue: any): Promise<void>;
canSetValue(settingName: string, roomId: string): boolean;
isSupported(): boolean;
private getSettings;
private notifyBreadcrumbsUpdate;
}