Really reenable editing messages, don't just do half a job.
This commit is contained in:
@@ -30,7 +30,7 @@ struct Mention {
|
||||
* A class to cache data from a chat bar.
|
||||
*
|
||||
* A chat bar can be anything that allows users to compose or edit message, it doesn't
|
||||
* necessarily have to use the ChatBar component, e.g. ChatBarComponent.
|
||||
* necessarily have to use the ChatBar component.
|
||||
*
|
||||
* This object is intended to allow the current contents of a chat bar to be cached
|
||||
* between different rooms, i.e. there is an expectation that each NeoChatRoom could
|
||||
@@ -40,7 +40,7 @@ struct Mention {
|
||||
* as it's parent. This is necessary for certain functions which need to get
|
||||
* relevant room information.
|
||||
*
|
||||
* @sa ChatBar, ChatBarComponent, NeoChatRoom
|
||||
* @sa ChatBar, NeoChatRoom
|
||||
*/
|
||||
class ChatBarCache : public QObject
|
||||
{
|
||||
|
||||
@@ -512,7 +512,7 @@ public:
|
||||
|
||||
ChatBarCache *threadCache() const;
|
||||
|
||||
ChatBarCache *cacheForType(ChatBarType::Type type) const;
|
||||
Q_INVOKABLE ChatBarCache *cacheForType(ChatBarType::Type type) const;
|
||||
|
||||
/**
|
||||
* @brief Reply to the last message sent in the timeline.
|
||||
|
||||
@@ -52,8 +52,8 @@ void TextHandler::setData(const QString &string)
|
||||
QString TextHandler::handleSendText()
|
||||
{
|
||||
m_pos = 0;
|
||||
m_dataBuffer = customMarkdownToHtml(m_data);
|
||||
m_dataBuffer = markdownToHTML(m_dataBuffer);
|
||||
m_dataBuffer = markdownToHTML(m_data);
|
||||
m_dataBuffer = customMarkdownToHtml(m_dataBuffer);
|
||||
|
||||
m_nextTokenType = nextTokenType(m_dataBuffer, m_pos, m_nextToken, m_nextTokenType);
|
||||
|
||||
@@ -805,6 +805,8 @@ QString TextHandler::customMarkdownToHtml(const QString &stringIn)
|
||||
// underline
|
||||
processSyntax(u"_"_s, u"<u>"_s, u"</u>"_s);
|
||||
|
||||
qWarning() << buffer;
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user