1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

GO-2059 Few fixes

This commit is contained in:
mcrakhman 2023-10-17 22:22:22 +02:00
parent be2231ce05
commit 2a406ba59e
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
3 changed files with 9 additions and 7 deletions

View file

@ -13,13 +13,13 @@ func (s *service) startLoad(ctx context.Context, spaceID string) (err error) {
s.mu.Lock()
defer s.mu.Unlock()
status := s.getStatus(spaceID)
if status.AccountStatus == spaceinfo.AccountStatusDeleted {
return ErrSpaceDeleted
}
// Do nothing if space is already loading
if status.LocalStatus != spaceinfo.LocalStatusUnknown {
return nil
}
if status.AccountStatus == spaceinfo.AccountStatusDeleted {
return ErrSpaceDeleted
}
exists, err := s.techSpace.SpaceViewExists(ctx, spaceID)
if err != nil {