-
- Downloads
jamiaccount: return syncing conversations
This changes tends to simplify the client code to detect syncing conversations. Note, this patch introduces some breaking changes for the stored convInfos, but this will be fixed when all devices are up-to-date. Changes: + getConversations() now returns conversations as soon as the request is accepted. + getConversationMembers() return members for syncing conversation (current account and the sender of the request) + "convInfo" now stores a map<string, ConvInfo> to avoid iterating over all conversations. This changes the structure stored on the disk and sent during the sync. GitLab: #591 Change-Id: I365875cda89c483bcf9c6ea3bd8222e6253773b1
Showing
- src/jamidht/account_manager.cpp 6 additions, 7 deletionssrc/jamidht/account_manager.cpp
- src/jamidht/account_manager.h 2 additions, 2 deletionssrc/jamidht/account_manager.h
- src/jamidht/accountarchive.cpp 4 additions, 3 deletionssrc/jamidht/accountarchive.cpp
- src/jamidht/accountarchive.h 1 addition, 1 deletionsrc/jamidht/accountarchive.h
- src/jamidht/jamiaccount.cpp 140 additions, 139 deletionssrc/jamidht/jamiaccount.cpp
- src/jamidht/jamiaccount.h 6 additions, 2 deletionssrc/jamidht/jamiaccount.h
- test/unitTest/conversation/conversation.cpp 112 additions, 6 deletionstest/unitTest/conversation/conversation.cpp
Loading
Please register or sign in to comment