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:
parent
44141bf048
commit
807792dc69
1 changed files with 1 additions and 2 deletions
|
@ -78,10 +78,9 @@ export default class UserView extends React.Component<IProps, IState> {
|
||||||
this.setState({ loading: false });
|
this.setState({ loading: false });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const fakeRoomState = new RoomState("roomId");
|
|
||||||
const fakeEvent = new MatrixEvent({ type: "m.room.member", content: profileInfo });
|
const fakeEvent = new MatrixEvent({ type: "m.room.member", content: profileInfo });
|
||||||
const member = new RoomMember(null, this.props.userId);
|
const member = new RoomMember(null, this.props.userId);
|
||||||
member.setMembershipEvent(fakeEvent, fakeRoomState);
|
member.setMembershipEvent(fakeEvent);
|
||||||
this.setState({ member, loading: false });
|
this.setState({ member, loading: false });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue