diff --git a/src/components/structures/UserView.tsx b/src/components/structures/UserView.tsx index 81d9e83428..b717caf753 100644 --- a/src/components/structures/UserView.tsx +++ b/src/components/structures/UserView.tsx @@ -78,10 +78,9 @@ export default class UserView extends React.Component { this.setState({ loading: false }); return; } - const fakeRoomState = new RoomState("roomId"); const fakeEvent = new MatrixEvent({ type: "m.room.member", content: profileInfo }); const member = new RoomMember(null, this.props.userId); - member.setMembershipEvent(fakeEvent, fakeRoomState); + member.setMembershipEvent(fakeEvent); this.setState({ member, loading: false }); }