contact accept

This commit is contained in:
Christien Rioux 2023-08-05 21:01:27 -04:00
parent b12cbcf684
commit 6f525843ff
4 changed files with 125 additions and 30 deletions

View file

@ -34,7 +34,7 @@
3. Set ContactRequest unicastinbox DHT record writer subkey with SignedContactResponse, encrypted with writer secret
## Receiving an accept/reject
1. Open and get SignedContactResponse from ContactRequest unicaseinbox DHT record
1. Open and get SignedContactResponse from ContactRequest unicastinbox DHT record
2. Decrypt with writer secret
3. Get DHT record for contact's AccountMaster
4. Validate the SignedContactResponse signature
@ -42,8 +42,10 @@
If accept == false:
1. Announce rejection
2. Delete local invitation from table
3. Overwrite and delete ContactRequest inbox
If accept == true:
1. Add a local contact with the remote chat dht record, updating from the remote profile in it.
2. Delete local invitation from table
3. Overwrite and delete ContactRequest inbox