-
- Downloads
sync: synchronize avatars from swarm members
This work follow the JamiAccount split started before. This moves the ConnectionManager's callbacks code related to data transfer into transfer_channel_handler and improves syncing by sending contact's avatars (where a swarm is present) to new devices. Note: for now, contact's avatar are managed by the client. So, this code will only transmit avatars if the profile is found. For now, the only path tested is the one used by jami-libclient. To be able to fully sync all avatars, the avatar management should be moved in the daemon with future work. Finally, in syncHistory a test is added to validate the behavior. Doc: https://git.jami.net/savoirfairelinux/ring-project/-/wikis/technical/3.8-Sync-profiles GitLab: https://git.jami.net/savoirfairelinux/ring-project/-/issues/1282 Change-Id: Ic98da34aabf1be070a57dcac55bba0a00c555445
Showing
- src/data_transfer.cpp 42 additions, 17 deletionssrc/data_transfer.cpp
- src/data_transfer.h 6 additions, 0 deletionssrc/data_transfer.h
- src/jamidht/CMakeLists.txt 2 additions, 0 deletionssrc/jamidht/CMakeLists.txt
- src/jamidht/Makefile.am 3 additions, 1 deletionsrc/jamidht/Makefile.am
- src/jamidht/conversation.cpp 1 addition, 1 deletionsrc/jamidht/conversation.cpp
- src/jamidht/conversation_channel_handler.cpp 1 addition, 1 deletionsrc/jamidht/conversation_channel_handler.cpp
- src/jamidht/conversation_channel_handler.h 1 addition, 1 deletionsrc/jamidht/conversation_channel_handler.h
- src/jamidht/conversation_module.cpp 14 additions, 0 deletionssrc/jamidht/conversation_module.cpp
- src/jamidht/jamiaccount.cpp 55 additions, 97 deletionssrc/jamidht/jamiaccount.cpp
- src/jamidht/jamiaccount.h 8 additions, 1 deletionsrc/jamidht/jamiaccount.h
- src/jamidht/multiplexed_socket.cpp 3 additions, 1 deletionsrc/jamidht/multiplexed_socket.cpp
- src/jamidht/sync_channel_handler.cpp 2 additions, 2 deletionssrc/jamidht/sync_channel_handler.cpp
- src/jamidht/sync_channel_handler.h 1 addition, 1 deletionsrc/jamidht/sync_channel_handler.h
- src/jamidht/transfer_channel_handler.cpp 149 additions, 0 deletionssrc/jamidht/transfer_channel_handler.cpp
- src/jamidht/transfer_channel_handler.h 72 additions, 0 deletionssrc/jamidht/transfer_channel_handler.h
- src/uri.cpp 2 additions, 0 deletionssrc/uri.cpp
- src/uri.h 7 additions, 6 deletionssrc/uri.h
- test/unitTest/fileTransfer/fileTransfer.cpp 108 additions, 13 deletionstest/unitTest/fileTransfer/fileTransfer.cpp
- test/unitTest/syncHistory/syncHistory.cpp 114 additions, 0 deletionstest/unitTest/syncHistory/syncHistory.cpp
Loading
Please register or sign in to comment