Skip to content

Add blinded contact records to Contacts and ConvoInfoVolatile #52

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

mpretty-cyro
Copy link
Collaborator

Adds blinded contact records to Contacts and ConvoInfoVolatile to simplify syncing them between devices and allow libSession to construct the full conversation list

Note: This is based on #51

@mpretty-cyro mpretty-cyro requested a review from jagerman June 13, 2025 06:26
@mpretty-cyro mpretty-cyro self-assigned this Jun 13, 2025
@@ -97,6 +115,47 @@ struct contact_info {
void load(const dict& info_dict);
};

struct blinded_contact_info : community {
using community::community;
Copy link
Member

Choose a reason for hiding this comment

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

Inheriting from community here feels a little strange, because a blinded contact does not satisfy "is a community" but rather "has a community", and so I think you could do everything here more cleanly by just having a community comm; member instead of inheritance.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So the main reason for the inheritance was so I could reuse the comm_iterator_helper - I've updated the struct to have a community comm; instead and added the set_{x} functions to redirect to setting the values on the member (not sure if this will work as desired or not 😬)

@mpretty-cyro mpretty-cyro force-pushed the feature/blinded-contacts branch from 470d8ad to 47c5164 Compare June 25, 2025 23:04
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