From 44c3dec9dc7b6738b1d3e22d4aff4dd5559ad97b Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sun, 24 Apr 2022 17:10:18 +0530 Subject: [PATCH] Fix crash on invite from dendrite hs (#453) --- src/app/organisms/invite-list/InviteList.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/organisms/invite-list/InviteList.jsx b/src/app/organisms/invite-list/InviteList.jsx index 6592070..e9a5ade 100644 --- a/src/app/organisms/invite-list/InviteList.jsx +++ b/src/app/organisms/invite-list/InviteList.jsx @@ -54,17 +54,19 @@ function InviteList({ isOpen, onRequestClose }) { }, [procInvite]); function renderRoomTile(roomId) { - const myRoom = initMatrix.matrixClient.getRoom(roomId); + const mx = initMatrix.matrixClient; + const myRoom = mx.getRoom(roomId); const roomName = myRoom.name; let roomAlias = myRoom.getCanonicalAlias(); if (roomAlias === null) roomAlias = myRoom.roomId; + const inviterName = myRoom.getMember(mx.getUserId())?.events?.member?.getSender?.() ?? ''; return ( )