This website requires JavaScript.
Explore
Help
Sign In
status-im
/
status-desktop
mirror of
https://github.com/status-im/status-desktop.git
Watch
2
Star
0
Fork
You've already forked status-desktop
0
Code
Issues
Projects
Releases
Wiki
Activity
387eab4fcf
status-desktop
/
ui
/
app
/
mainui
/
adaptors
/
qmldir
3 lines
96 B
Plaintext
Raw
Normal View
History
Unescape
Escape
ContactDetails decomposed into smaller, more specialized components Closes: #16793
2024-11-21 15:10:58 +00:00
AllContactsAdaptor 1.0 AllContactsAdaptor.qml
Refactor contacts models to have a single model, remove useless properties and improve updating (#16667) * refactor(contacts): refactor 5 contact models into one and filter in QML Fixes #16549 Refactors the 5 types of contact models (all, mutuals, banned, received and sent) into only the `allContacts` and use an Adaptor on the QML side to filter into the needed models. This cleans the Nim side a lot and makes applying updates to the contacts' model way simpler. * chore(contacts): remove useless and duplicated contact properties OptionalName and isSyncing were never used. DefaultDisplayName was not really used and is actually a duplication of preferredDisplayName, so I replaced the limited usages of DefaultDisplayName by preferredDisplayName * refactor(contacts): improve updates by not removing and re-adding We used to update contact items by removing them from the models and re-adding them. This is highly inefficient. Instead, the proper way is to update only the values that changed. * user_model: onItemChanged signal removed * user_model: sorting by online status no longer needed on nim side * Chat/RootStore: contactsModel property removed * ContactsStore encapsulation improved * ContactsStore: contacts model adaptor moved outside store --------- Co-authored-by: Michał Cieślak <michalcieslak@status.im>
2024-11-28 14:15:34 +00:00
ContactsModelAdaptor 1.0 ContactsModelAdaptor.qml