From baaf827c48c5c0eda422006b4b964ed628fc205b Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 11 Jan 2017 17:03:14 +0000 Subject: [PATCH] Use `getStateKey` instead of `getSender` This makes sure that the kickee is not the user used for the MemberEventListSummary --- src/components/views/elements/MemberEventListSummary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index bff2ce3d05..518439b1c7 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -181,7 +181,7 @@ module.exports = React.createClass({ }; eventsToRender.forEach((e) => { - const userId = e.getSender(); + const userId = e.getStateKey(); // Initialise a user's events if (!userEvents[userId]) { userEvents[userId] = {first: null, last: null};