From ef178b282c2f82181584a284b14b3d3e56a22f87 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 14 Jun 2018 13:44:05 +0100 Subject: [PATCH] use getters on MatrixEvent for roomId and eventId Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/ShareDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/dialogs/ShareDialog.js b/src/components/views/dialogs/ShareDialog.js index 873fcc4dee..bbd381ad29 100644 --- a/src/components/views/dialogs/ShareDialog.js +++ b/src/components/views/dialogs/ShareDialog.js @@ -169,9 +169,9 @@ export default class ShareDialog extends React.Component { ; 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 { - matrixToUrl = makeRoomPermalink(this.props.target.roomId); + matrixToUrl = makeRoomPermalink(this.props.target.getRoomId()); } }