diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index 10c1b4704..003d7badd 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -883,15 +883,8 @@ void ChatWidget::fileHashingFinished(QList hashedFiles) std::cerr << "ChatWidget::fileHashingFinished message : " << message.toStdString() << std::endl; #endif - /* convert to real html document */ - QTextBrowser textBrowser; - textBrowser.setHtml(message); - std::wstring msg = textBrowser.toHtml().toStdWString(); + ui->chatTextEdit->insertHtml(message); - if (rsMsgs->sendPrivateChat(peerId, msg)) { - QDateTime currentTime = QDateTime::currentDateTime(); - addChatMsg(false, name, currentTime, currentTime, QString::fromStdWString(msg), TYPE_NORMAL); - } } bool ChatWidget::fileSave()