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

This commit is contained in:
David Renshaw 2016-11-15 14:34:37 -05:00
parent 5657b6f8c7
commit 74e41e420f

View file

@ -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);