Comment updates

This commit is contained in:
James Graham
2026-02-03 18:52:23 +00:00
parent 80047acf87
commit dff6ab66f1
15 changed files with 28 additions and 87 deletions

View File

@@ -4,7 +4,6 @@
#include "chatbarmessagecontentmodel.h"
#include <QTextDocumentFragment>
#include <qlogging.h>
#include "chatbarcache.h"
#include "chatkeyhelper.h"
@@ -332,7 +331,7 @@ QModelIndex ChatBarMessageContentModel::indexForTextItem(ChatTextItemHelper *tex
bool ChatBarMessageContentModel::hasRichFormatting() const
{
for (const auto &component : m_components) {
return std::ranges::any_of(m_components, [this](const auto &component) {
if (component.type != MessageComponentType::Text) {
return true;
}
@@ -341,8 +340,8 @@ bool ChatBarMessageContentModel::hasRichFormatting() const
return true;
}
}
}
return false;
return false;
});
}
bool ChatBarMessageContentModel::hasAttachment() const