UNPKG

matrix-react-sdk

Version:
20 lines (19 loc) 737 B
import SettingsHandler from "./SettingsHandler"; /** * A wrapper for a SettingsHandler that performs local echo on * changes to settings. This wrapper will use the underlying * handler as much as possible to ensure values are not stale. */ export default class LocalEchoWrapper extends SettingsHandler { private handler; private cache; /** * Creates a new local echo wrapper * @param {SettingsHandler} handler The handler to wrap */ constructor(handler: SettingsHandler); getValue(settingName: string, roomId: string): any; setValue(settingName: string, roomId: string, newValue: any): Promise<void>; canSetValue(settingName: string, roomId: string): boolean; isSupported(): boolean; }