Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle incoming friend request #16

Merged
merged 3 commits into from
Oct 24, 2018

Conversation

sachaaaaa
Copy link

First pass of handling incoming friend requests:

  • decode prekeyBundleMessage (handlePreKeyBundleMessage)
  • then store prekeys in db (savePreKeyBundleForNumber ) if not existing yet (lookup for a pubkey - keyId pair: loadContactPreKeys and loadContactSignedPreKeys)
  • add a function to send an empty reply (sendEmptyMessageWithPreKeys) Not used yet.
  • a couple of fixes for the previous PR

Copy link

@BeaudanBrown BeaudanBrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as I can tell

@sachaaaaa sachaaaaa merged commit 1cf8710 into oxen-io:development Oct 24, 2018
@sachaaaaa sachaaaaa deleted the friend_response branch October 24, 2018 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants