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;