Use helper function to get event content

This commit is contained in:
Steffen Kolmer 2021-09-01 22:40:42 +02:00
parent e661c017e3
commit c32a77c3b2

View file

@ -494,7 +494,7 @@ export default class RoomPreviewBar extends React.Component {
} }
const myUserId = MatrixClientPeg.get().getUserId(); const myUserId = MatrixClientPeg.get().getUserId();
const memberEventContent = this.props.room.currentState.getMember(myUserId).events.member.event.content; const memberEventContent = this.props.room.currentState.getMember(myUserId).events.member.getContent();
if (memberEventContent.reason) { if (memberEventContent.reason) {
reasonElement = <InviteReason reasonElement = <InviteReason