[Bug+Question] Daemon only sending trust request if account is not in the contact list
Platform: x86_64
OS: Fedora 29
Build: based on eff973bd
Prerequisites: Client A with client B as a contact, client B with client A as a contact
Steps to reproduce:
- In client A: Delete client B from the contact list
- In client B: Send a message to client A
Expected behaviour: Client B sends a trust request in order to trigger client A's onTrustRequest
function in src/jamidht/jamiaccount.cpp
Actual behaviour: Client B sends no trust request and therefore client A never calls the onTrustRequest
function.
As a result the refuse button in client A's trust request dialog won't work and it may have other unintended side effects.
Question: Is client B supposed to send a new trust request for already existing contacts or should client A handle a message from an unknown client as if it were a trust request and call onTrustRequest
?