Fix font not resetting when logging out (#8670)
* Fix font not resetting when logging out * Adopt on_logged_in and on_logged_out into DispatcherAction * Add tests * Add copyright
This commit is contained in:
parent
f3b762c1a8
commit
d75e2f19c5
11 changed files with 97 additions and 39 deletions
|
@ -42,6 +42,7 @@ import { ImageSize } from "./enums/ImageSize";
|
|||
import { MetaSpace } from "../stores/spaces";
|
||||
import SdkConfig from "../SdkConfig";
|
||||
import ThreadBetaController from './controllers/ThreadBetaController';
|
||||
import { FontWatcher } from "./watchers/FontWatcher";
|
||||
|
||||
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
|
||||
const LEVELS_ROOM_SETTINGS = [
|
||||
|
@ -420,7 +421,7 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
|||
"baseFontSize": {
|
||||
displayName: _td("Font size"),
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
default: 10,
|
||||
default: FontWatcher.DEFAULT_SIZE,
|
||||
controller: new FontSizeController(),
|
||||
},
|
||||
"useCustomFontSize": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue