-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: dev
Are you sure you want to change the base?
Add blinded contact records to Contacts and ConvoInfoVolatile #52
Conversation
include/session/config/contacts.hpp
Outdated
@@ -97,6 +115,47 @@ struct contact_info { | |||
void load(const dict& info_dict); | |||
}; | |||
|
|||
struct blinded_contact_info : community { | |||
using community::community; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 😬)
470d8ad
to
47c5164
Compare
Adds blinded contact records to
Contacts
andConvoInfoVolatile
to simplify syncing them between devices and allowlibSession
to construct the full conversation listNote: This is based on #51