You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
use getters on MatrixEvent for roomId and eventId
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user