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

@@ -9,8 +9,8 @@
#include <Quotient/events/roomevent.h>
#include "enums/messagecomponenttype.h"
#include "itinerarymodel.h"
#include "messagecomponent.h"
#include "models/itinerarymodel.h"
#include "models/reactionmodel.h"
#include "neochatroommember.h"
@@ -132,6 +132,7 @@ private:
void initializeModel();
void initializeEvent();
void getEvent();
void updateFileInfo();
QList<MessageComponent> m_components;
void resetModel();