Have LocalEchoWrapper emit updates so the app can react faster (#7358)
This commit is contained in:
parent
feea80dfd5
commit
9ed771ad7a
8 changed files with 30 additions and 16 deletions
|
@ -36,10 +36,14 @@ const ANALYTICS_EVENT_TYPE = "im.vector.analytics";
|
|||
* This handler does not make use of the roomId parameter.
|
||||
*/
|
||||
export default class AccountSettingsHandler extends MatrixClientBackedSettingsHandler {
|
||||
constructor(private watchers: WatchManager) {
|
||||
constructor(public readonly watchers: WatchManager) {
|
||||
super();
|
||||
}
|
||||
|
||||
public get level(): SettingLevel {
|
||||
return SettingLevel.ACCOUNT;
|
||||
}
|
||||
|
||||
public initMatrixClient(oldClient: MatrixClient, newClient: MatrixClient) {
|
||||
if (oldClient) {
|
||||
oldClient.removeListener("accountData", this.onAccountData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue