mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
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 });
|
||||
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 });
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue