Add temporary appview-proxy header toggle (#874)

This commit is contained in:
Paul Frazee 2023-06-13 13:10:42 -05:00 committed by GitHub
parent 6efbe820d9
commit 1a12fa5775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 98 additions and 16 deletions

View file

@ -23,6 +23,11 @@ import {ImageSizesCache} from './cache/image-sizes'
import {MutedThreads} from './muted-threads'
import {reset as resetNavigation} from '../../Navigation'
// TEMPORARY (APP-700)
// remove after backend testing finishes
// -prf
import {applyDebugHeader} from 'lib/api/debug-appview-proxy-header'
export const appInfo = z.object({
build: z.string(),
name: z.string(),
@ -125,6 +130,7 @@ export class RootStoreModel {
) {
this.log.debug('RootStoreModel:handleSessionChange')
this.agent = agent
applyDebugHeader(this.agent)
this.me.clear()
/* dont await */ this.preferences.sync()
await this.me.load()