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

5
dist/bundle.es.js vendored
View file

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

View file

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