MessageContentModel improvements

Remove the hack for DelegateChooser and minimise the amount of updates when data changes
This commit is contained in:
James Graham
2025-07-04 10:28:50 +01:00
parent d7cd38b5e5
commit d5d291396d
3 changed files with 40 additions and 33 deletions

View File

@@ -10,7 +10,7 @@ struct MessageComponent {
QString content;
QVariantMap attributes;
int operator==(const MessageComponent &right) const
bool operator==(const MessageComponent &right) const
{
return type == right.type && content == right.content && attributes == right.attributes;
}