File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 2020 if (app .splits .root === id ) {
2121 if (channel ) {
2222 await goto (` /channels/${channel .user .username } ` );
23- app .splits .root = null ;
2423 } else {
2524 await goto (" /" );
2625 }
2726
27+ app .splits .root = null ;
2828 return ;
2929 }
3030
Original file line number Diff line number Diff line change @@ -117,4 +117,14 @@ export const defaults: Settings = {
117117 "advanced.logs.level" : "info" ,
118118} ;
119119
120- export const settings = new RuneStore < Settings > ( "settings" , defaults ) ;
120+ export const settings = new RuneStore < Settings > ( "settings" , defaults , {
121+ hooks : {
122+ beforeBackendSync ( state ) {
123+ if ( typeof state . layout === "string" ) {
124+ state . layout = null ;
125+ }
126+
127+ return state ;
128+ } ,
129+ } ,
130+ } ) ;
Original file line number Diff line number Diff line change 1818 await app .user .fetchEmoteSets ();
1919 }
2020
21- // Only navigate to split view if there's more than one split
22- if (settings .state .layout && typeof settings .state .layout !== " string" ) {
21+ if (settings .state .layout ) {
2322 app .splits .root = settings .state .layout ;
2423
2524 await goto (" /channels/split" );
You can’t perform that action at this time.
0 commit comments