From 5c9d3edec4044abd076769e9ec5161840a8b0f86 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 5 Jul 2017 14:46:00 +0100 Subject: [PATCH] Revert #1170, fde7d5eaf49413fc8442ca53dfd49a01233ed177 There were a few issues with this, namely that links were no longer linkified and an error was logged to the console: `Warning: Stateless function components cannot be given refs (See ref "topic" in EmojiText created by RoomHeader). Attempts to access this ref will fail.` --- src/components/views/rooms/RoomHeader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomHeader.js b/src/components/views/rooms/RoomHeader.js index 9efedcd861..85aedadf64 100644 --- a/src/components/views/rooms/RoomHeader.js +++ b/src/components/views/rooms/RoomHeader.js @@ -251,7 +251,7 @@ module.exports = React.createClass({ } if (topic) { topicElement = - { topic }; +
{ topic }
; } }