Revert some changes that are unncessary due to js-sdk changes

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-09-13 18:24:53 +02:00
parent 44141bf048
commit 807792dc69
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 1 additions and 2 deletions

View File

@ -78,10 +78,9 @@ export default class UserView extends React.Component<IProps, IState> {
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 });
}