From d92d95c37d7d032520e7377c5e9f99e5481f6562 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 22 Jun 2018 12:11:16 +0100 Subject: [PATCH] don't fall back to getGroups as it gets it no additional data Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/elements/Pill.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/Pill.js b/src/components/views/elements/Pill.js index 70e1d0659a..b860f7bf72 100644 --- a/src/components/views/elements/Pill.js +++ b/src/components/views/elements/Pill.js @@ -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, + }; } } }