1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00
This commit is contained in:
Roman Khafizianov 2025-04-09 13:03:16 +02:00
parent 2b718e49e6
commit 798db06138
No known key found for this signature in database
GPG key ID: F07A7D55A2684852

View file

@ -50,6 +50,7 @@ const (
migrationUseCase = -1
migrationDashboardName = "bafyreiha2hjbrzmwo7rpiiechv45vv37d6g5aezyr5wihj3agwawu6zi3u"
defaultDashboardId = "lastOpened"
contentLengthHeader = "Content-Length"
archiveDownloadingPercents = 30
@ -316,6 +317,13 @@ func (b *builtinObjects) handleHomePage(profile *pb.Profile, spaceId string, isM
oldID := migrationDashboardName
if !isMigration && profile != nil {
oldID = profile.SpaceDashboardId
if oldID == "" {
oldID = defaultDashboardId
}
}
if oldID == defaultDashboardId {
return oldID
}
newID, err := b.getNewObjectID(spaceId, oldID)