-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: only show new versions of spaces if they are newer than the local copies #249
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -59,6 +60,16 @@ export const createHomeBaseStoreFunc = ( | |||
const spaceConfig = JSON.parse( | |||
await get().account.decryptEncryptedSignedFile(fileData), | |||
) as SpaceConfig; | |||
const currentHomebase = get().homebase.homebaseConfig; | |||
if ( | |||
spaceConfig.timestamp && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle undefined spaceConfig
if ( | ||
spaceConfig.timestamp && | ||
currentHomebase && | ||
currentHomebase.timestamp && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also return true if local config has a timestamp and the fetched one doesn't to fix this issue on existing users' next save
const currentLocalCopy = get().space.localSpaces[spaceId]; | ||
if ( | ||
spaceConfig && | ||
spaceConfig.timestamp && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also return true if local config has a timestamp and the fetched one doesn't
@ryannorton Fixed comments |
No description provided.