don't fall back to getGroups as it gets it no additional data

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-22 12:11:16 +01:00
parent 9ee78de7e5
commit d92d95c37d
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -152,8 +152,12 @@ const Pill = React.createClass({
try {
group = await FlairStore.getGroupProfileCached(cli, resourceId);
} catch (e) { // if FlairStore failed, rely on js-sdk's store which lacks info
group = cli.getGroup(resourceId);
} catch (e) { // if FlairStore failed, fall back to just groupId
group = {
groupId: resourceId,
avatarUrl: null,
name: null,
};
}
}
}