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

reviewable/pr517/r1
David Renshaw 9 years ago
parent 5657b6f8c7
commit 74e41e420f
  1. 5
      sandstorm.js

@ -116,9 +116,10 @@ if (isSandstorm && Meteor.isServer) {
mentioned: !!user.mentioned, mentioned: !!user.mentioned,
subscribed: !!user.subscribed, 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) => { })).then((maybeUsers) => {
const users = maybeUsers.filter((u) => !!u); const users = maybeUsers.filter((u) => !!u);

Loading…
Cancel
Save