Have LocalEchoWrapper emit updates so the app can react faster (#7358)

This commit is contained in:
Michael Telatynski 2021-12-17 08:53:03 +00:00 committed by GitHub
parent feea80dfd5
commit 9ed771ad7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 16 deletions

View file

@ -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);