From e98ef0d5370c31819baa4ef3b57d1bc3b60acbc2 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 3 Apr 2019 21:12:36 +0100 Subject: [PATCH] only show continues link if tombstone has a continuation --- src/components/views/rooms/MessageComposer.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 535d565d22..576f45a3bc 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -362,18 +362,22 @@ export default class MessageComposer extends React.Component { } else if (this.state.tombstone) { const replacementRoomId = this.state.tombstone.getContent()['replacement_room']; + const continuesLink = replacementRoomId ? ( + + {_t("The conversation continues here.")} + + ) : ''; + controls.push(
{_t("This room has been replaced and is no longer active.")}
- - {_t("The conversation continues here.")} - + { continuesLink }
); } else {