;
+
+ if (this.state.linkSpecificEvent) {
+ matrixToUrl = makeEventPermalink(this.props.target.roomId, this.props.target.eventId);
+ } else {
+ matrixToUrl = makeRoomPermalink(this.props.target.roomId);
+ }
}
const encodedUrl = encodeURIComponent(matrixToUrl);
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index bb5ad5405b..3802c73431 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -863,6 +863,7 @@
"Share User": "Share User",
"Share Community": "Share Community",
"Share Room Message": "Share Room Message",
+ "Link to selected message": "Link to selected message",
"COPY": "COPY",
"You are currently blacklisting unverified devices; to send messages to these devices you must verify them.": "You are currently blacklisting unverified devices; to send messages to these devices you must verify them.",
"We recommend you go through the verification process for each device to confirm they belong to their legitimate owner, but you can resend the message without verifying if you prefer.": "We recommend you go through the verification process for each device to confirm they belong to their legitimate owner, but you can resend the message without verifying if you prefer.",