mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Use helper function to get event content
This commit is contained in:
parent
e661c017e3
commit
c32a77c3b2
@ -494,7 +494,7 @@ export default class RoomPreviewBar extends React.Component {
|
||||
}
|
||||
|
||||
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) {
|
||||
reasonElement = <InviteReason
|
||||
|
Loading…
Reference in New Issue
Block a user