Use helper function to get event content
This commit is contained in:
parent
e661c017e3
commit
c32a77c3b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue