Browse Source

[sandstorm]: fix bug where an identity that fails to restore could not be added to a card

David Renshaw 8 years ago
parent
commit
74e41e420f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      sandstorm.js

+ 3 - 2
sandstorm.js

@@ -116,9 +116,10 @@ if (isSandstorm && Meteor.isServer) {
                      mentioned: !!user.mentioned,
                      subscribed: !!user.subscribed,
                    };
-          }).catch(() => {
-            // Ignore identities that fail to resolve. Probably they have lost access to the board.
           });
+        }).catch(() => {
+          // Ignore identities that fail to restore. Either they were added before we set
+          // `saveIdentityCaps` to true, or they have lost access to the board.
         });
       })).then((maybeUsers) => {
         const users = maybeUsers.filter((u) => !!u);