diff --git a/client/views/room/Announcement/Announcement.js b/client/views/room/Announcement/Announcement.js index d97966e0703f..d6a854d40e6b 100644 --- a/client/views/room/Announcement/Announcement.js +++ b/client/views/room/Announcement/Announcement.js @@ -44,6 +44,7 @@ export default ({ announcement, announcementDetails }) => { announcementDetails ? announcementDetails() : setModal({announcement}); }; + const announcementWithoutBreaks = announcement && announcement.replace(/(\r\n|\n|\r)/gm, ' '); - return announcement ? : false; + return announcementWithoutBreaks ? : false; };