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

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

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 });
}