use getters on MatrixEvent for roomId and eventId

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-14 13:44:05 +01:00
parent bef435e15a
commit ef178b282c
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -169,9 +169,9 @@ export default class ShareDialog extends React.Component {
</div>; </div>;
if (this.state.linkSpecificEvent) { if (this.state.linkSpecificEvent) {
matrixToUrl = makeEventPermalink(this.props.target.roomId, this.props.target.eventId); matrixToUrl = makeEventPermalink(this.props.target.getRoomId(), this.props.target.getId());
} else { } else {
matrixToUrl = makeRoomPermalink(this.props.target.roomId); matrixToUrl = makeRoomPermalink(this.props.target.getRoomId());
} }
} }