sync 'following'

This commit is contained in:
Sean Yesmunt 2020-10-30 12:45:59 -04:00
parent 04789190b0
commit 4d11f31914
2 changed files with 9 additions and 1 deletions
dist
src/redux/actions

5
dist/bundle.es.js vendored
View file

@ -1713,6 +1713,7 @@ function extractUserState(rawObj) {
if (rawObj && rawObj.version === '0.1' && rawObj.value) { if (rawObj && rawObj.version === '0.1' && rawObj.value) {
const { const {
subscriptions, subscriptions,
following,
tags, tags,
blocked, blocked,
settings, settings,
@ -1720,7 +1721,7 @@ function extractUserState(rawObj) {
sharing_3P sharing_3P
} = rawObj.value; } = rawObj.value;
return _extends$1({}, subscriptions ? { subscriptions } : {}, tags ? { tags } : {}, blocked ? { blocked } : {}, settings ? { settings } : {}, app_welcome_version ? { app_welcome_version } : {}, sharing_3P ? { sharing_3P } : {}); return _extends$1({}, subscriptions ? { subscriptions } : {}, following ? { following } : {}, tags ? { tags } : {}, blocked ? { blocked } : {}, settings ? { settings } : {}, app_welcome_version ? { app_welcome_version } : {}, sharing_3P ? { sharing_3P } : {});
} }
return {}; return {};
@ -1730,6 +1731,7 @@ function doPopulateSharedUserState(sharedSettings) {
return dispatch => { return dispatch => {
const { const {
subscriptions, subscriptions,
following,
tags, tags,
blocked, blocked,
settings, settings,
@ -1740,6 +1742,7 @@ function doPopulateSharedUserState(sharedSettings) {
type: USER_STATE_POPULATE, type: USER_STATE_POPULATE,
data: { data: {
subscriptions, subscriptions,
following,
tags, tags,
blocked, blocked,
settings, settings,

View file

@ -6,6 +6,7 @@ type SharedData = {
version: '0.1', version: '0.1',
value: { value: {
subscriptions?: Array<string>, subscriptions?: Array<string>,
following?: Array<{ uri: string, notificationsDisabled: boolean }>,
tags?: Array<string>, tags?: Array<string>,
blocked?: Array<string>, blocked?: Array<string>,
settings?: any, settings?: any,
@ -18,6 +19,7 @@ function extractUserState(rawObj: SharedData) {
if (rawObj && rawObj.version === '0.1' && rawObj.value) { if (rawObj && rawObj.version === '0.1' && rawObj.value) {
const { const {
subscriptions, subscriptions,
following,
tags, tags,
blocked, blocked,
settings, settings,
@ -27,6 +29,7 @@ function extractUserState(rawObj: SharedData) {
return { return {
...(subscriptions ? { subscriptions } : {}), ...(subscriptions ? { subscriptions } : {}),
...(following ? { following } : {}),
...(tags ? { tags } : {}), ...(tags ? { tags } : {}),
...(blocked ? { blocked } : {}), ...(blocked ? { blocked } : {}),
...(settings ? { settings } : {}), ...(settings ? { settings } : {}),
@ -42,6 +45,7 @@ export function doPopulateSharedUserState(sharedSettings: any) {
return (dispatch: Dispatch) => { return (dispatch: Dispatch) => {
const { const {
subscriptions, subscriptions,
following,
tags, tags,
blocked, blocked,
settings, settings,
@ -52,6 +56,7 @@ export function doPopulateSharedUserState(sharedSettings: any) {
type: ACTIONS.USER_STATE_POPULATE, type: ACTIONS.USER_STATE_POPULATE,
data: { data: {
subscriptions, subscriptions,
following,
tags, tags,
blocked, blocked,
settings, settings,