From 007825b1faaaf0ab7f200437a218ddc0ed7cb175 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 19 Nov 2016 16:44:12 +0100 Subject: [PATCH] Fix Anchor on Channel Message --- retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp b/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp index bd70ae0e7..8c6221fd2 100644 --- a/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp +++ b/retroshare-gui/src/gui/gxschannels/CreateGxsChannelMsg.cpp @@ -26,9 +26,10 @@ #include #include -#include #include "CreateGxsChannelMsg.h" #include "gui/feeds/SubFileItem.h" +#include "gui/RetroShareLink.h" +#include "util/HandleRichText.h" #include "util/misc.h" #include @@ -573,7 +574,9 @@ void CreateGxsChannelMsg::sendMsg() /* construct message bits */ std::string subject = std::string(misc::removeNewLine(subjectEdit->text()).toUtf8()); - std::string msg = std::string(msgEdit->toPlainText().toUtf8()); + QString text; + RsHtml::optimizeHtml(msgEdit, text); + std::string msg = text.toStdString(); std::list files;