-
- Downloads
contact_list: force removeContact to update all components
If a contact is added, removed and a new trust request generated and removed with "removeContact" it wasn't removing the trust request because the contact wasn't considered as active and the banned status didn't change. Removing this return condition force all components to update and supports client if they use removeContact instead of declineTrustRequest. This avoid useless complexity with isActive, because if isActive() is false, removeContact will not change the result and isActive() will still return false. A test is added. GitLab: #855 Change-Id: I4385c2a480f6cfa5de3785a08bc2193eeb9a24a1
Showing
- src/jamidht/account_manager.cpp 2 additions, 4 deletionssrc/jamidht/account_manager.cpp
- src/jamidht/contact_list.cpp 0 additions, 2 deletionssrc/jamidht/contact_list.cpp
- test/unitTest/conversation/conversation.cpp 4 additions, 141 deletionstest/unitTest/conversation/conversation.cpp
- test/unitTest/conversation/conversationMembersEvent.cpp 82 additions, 96 deletionstest/unitTest/conversation/conversationMembersEvent.cpp
Loading
Please register or sign in to comment