From 3476cfca791a2b22c98914ac8854af5dea331dc9 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 18 Sep 2017 14:44:35 +0100 Subject: [PATCH] getPublicGroups->getPublicisedGroups To match dbkrs js-sdk wrappers for flair: matrix-org/matrix-js-sdk/pull#542 --- src/components/views/elements/Flair.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/elements/Flair.js b/src/components/views/elements/Flair.js index 52eff46f58..19b4f28811 100644 --- a/src/components/views/elements/Flair.js +++ b/src/components/views/elements/Flair.js @@ -47,7 +47,7 @@ const usersPending = { }; let debounceTimeoutID; -function getPublicGroupsCached(matrixClient, userId) { +function getPublicisedGroupsCached(matrixClient, userId) { if (userGroups[userId]) { return Promise.resolve(userGroups[userId]); } @@ -96,7 +96,7 @@ async function batchedGetPublicGroups(matrixClient) { users: [], }; try { - resp = await matrixClient.getPublicGroups(usersInFlight); + resp = await matrixClient.getPublicisedGroups(usersInFlight); } catch (err) { // Propagate the same error to all usersInFlight usersInFlight.forEach((userId) => { @@ -157,7 +157,7 @@ export default class Flair extends React.Component { async _generateAvatars() { let groups; try { - groups = await getPublicGroupsCached(this.context.matrixClient, this.props.userId); + groups = await getPublicisedGroupsCached(this.context.matrixClient, this.props.userId); } catch (err) { console.error('Could not get groups for user', this.props.userId, err); }