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

added to a group, but don't have root #37

Open
mixmix opened this issue Feb 23, 2021 · 1 comment
Open

added to a group, but don't have root #37

mixmix opened this issue Feb 23, 2021 · 1 comment

Comments

@mixmix
Copy link
Member

mixmix commented Feb 23, 2021

ssb-tribes listens for group/add-member messages and if it sees on the first thing it does is look up the root message for that group. It needs to do this to derive the groupId (currently) so that it can register the groupId and key in the keystore.

if you don't have the root message yet, then all this breaks and the app throws at the moment.
If we don't throw then the user will never register the group and so will never rebuild / be able to decrypt group messages, be able to encrypt messages to the group

@mixmix mixmix changed the title added to a group, but don added to a group, but don't have root Feb 23, 2021
@mixmix
Copy link
Member Author

mixmix commented Feb 23, 2021

Possible solutions:

  1. defer processing - would require storing the unprocessed invitation
  2. include the groupId in the invitation - this isn't ideal, as you'd have to trust the inviter rather than deriving the groupId yourself
  3. include the rootAuthor - this would at least let you know if you are out of range of a group

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

No branches or pull requests

1 participant