Use a QSortFilterProxyModel instead of resetting the model

This commit is contained in:
Loren Burkholder 2021-07-28 21:31:37 -04:00
parent 1777a1b52f
commit 7e538851d6
7 changed files with 71 additions and 29 deletions

View file

@ -206,12 +206,12 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
0,
"InviteesModel",
"InviteesModel needs to be instantiated on the C++ side");
qmlRegisterUncreatableType<ReadReceiptsModel>(
qmlRegisterUncreatableType<ReadReceiptsProxy>(
"im.nheko",
1,
0,
"ReadReceiptsModel",
"ReadReceiptsModel needs to be instantiated on the C++ side");
"ReadReceiptsProxy",
"ReadReceiptsProxy needs to be instantiated on the C++ side");
static auto self = this;
qmlRegisterSingletonType<MainWindow>(