diff --git a/src/app/organisms/invite-list/InviteList.jsx b/src/app/organisms/invite-list/InviteList.jsx index 65920704..e9a5adef 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 ( )