* Add initial preferences query, couple mutations * Remove unused * Clean up labels, migrate getModerationOpts * Add birth date handling * Migrate feed prefs * Migrate thread view prefs * Migrate homeFeed to use existing key name * Fix up saved feeds in response, no impl yet * Migrate saved feeds to new hooks * Clean up more of preferences * Fix PreferencesThreads load state * Fix modal dismissal * Small spacing fix --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
16 lines
439 B
TypeScript
16 lines
439 B
TypeScript
import {LabelPreference} from '@atproto/api'
|
|
|
|
/**
|
|
* Content labels previously included 'show', which has been deprecated in
|
|
* favor of 'ignore'. The API can return legacy data from the database, and
|
|
* we clean up the data in `usePreferencesQuery`.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export function temp__migrateLabelPref(
|
|
pref: LabelPreference | 'show',
|
|
): LabelPreference {
|
|
// @ts-ignore
|
|
if (pref === 'show') return 'ignore'
|
|
return pref
|
|
}
|