swarm: simplify and update avatar update mechanism
Implements a leaner avatar caching system. The avatar component listens for uid filtering its id, which may be: - conversation id - account id - contact uri In response to the uid change, a the image source is updated with a new image url invoking a fresh QQuickImageProvider query. With this design, only the avatarregistry's uid mapping needs to be updated when profiles are changed, and no longer should specific avatar components receive manual source updates. Gitlab: #466 Change-Id: Ie5313f5c187a0977ca51b890dd92187480a42537
Showing
- CMakeLists.txt 4 additions, 2 deletionsCMakeLists.txt
- qml.qrc 2 additions, 1 deletionqml.qrc
- src/accountadapter.cpp 23 additions, 10 deletionssrc/accountadapter.cpp
- src/accountadapter.h 2 additions, 1 deletionsrc/accountadapter.h
- src/accountlistmodel.cpp 0 additions, 27 deletionssrc/accountlistmodel.cpp
- src/accountlistmodel.h 2 additions, 18 deletionssrc/accountlistmodel.h
- src/avatarimageprovider.h 24 additions, 36 deletionssrc/avatarimageprovider.h
- src/avatarregistry.cpp 84 additions, 0 deletionssrc/avatarregistry.cpp
- src/avatarregistry.h 51 additions, 0 deletionssrc/avatarregistry.h
- src/calloverlaymodel.cpp 0 additions, 2 deletionssrc/calloverlaymodel.cpp
- src/commoncomponents/AccountMigrationDialog.qml 2 additions, 15 deletionssrc/commoncomponents/AccountMigrationDialog.qml
- src/commoncomponents/Avatar.qml 118 additions, 0 deletionssrc/commoncomponents/Avatar.qml
- src/commoncomponents/AvatarImage.qml 0 additions, 229 deletionssrc/commoncomponents/AvatarImage.qml
- src/commoncomponents/PhotoboothView.qml 78 additions, 180 deletionssrc/commoncomponents/PhotoboothView.qml
- src/commoncomponents/SpinningAnimation.qml 9 additions, 11 deletionssrc/commoncomponents/SpinningAnimation.qml
- src/constant/JamiStrings.qml 1 addition, 2 deletionssrc/constant/JamiStrings.qml
- src/constant/JamiTheme.qml 1 addition, 0 deletionssrc/constant/JamiTheme.qml
- src/conversationlistmodelbase.cpp 0 additions, 36 deletionssrc/conversationlistmodelbase.cpp
- src/conversationlistmodelbase.h 0 additions, 10 deletionssrc/conversationlistmodelbase.h
- src/conversationsadapter.cpp 6 additions, 4 deletionssrc/conversationsadapter.cpp
Loading
Please register or sign in to comment