From 7db6f89a9fcfa803c22c2b04e59e5f124e6a449b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 30 Jan 2020 21:07:32 +0000 Subject: [PATCH] hmm, there were two things using the client :(( Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/InviteDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index e2741b36f9..8fec2437f6 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -435,7 +435,7 @@ export default class InviteDialog extends React.PureComponent { // room to see who has sent a message in the last few hours, and giving them a score // which correlates to the freshness of their message. In theory, this results in suggestions // which are closer to "continue this conversation" rather than "this person exists". - const trueJoinedRooms = client.getRooms().filter(r => r.getMyMembership() === 'join'); + const trueJoinedRooms = MatrixClientPeg.get().getRooms().filter(r => r.getMyMembership() === 'join'); const now = (new Date()).getTime(); const earliestAgeConsidered = now - (60 * 60 * 1000); // 1 hour ago const maxMessagesConsidered = 50; // so we don't iterate over a huge amount of traffic