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

Additional invite/promotion state and missing C functions #92

Merged
merged 5 commits into from
Jul 18, 2024

Conversation

mpretty-cyro
Copy link
Collaborator

  • Added an 'INVITE_NOT_SENT' status which is the default used when creating a new group member
  • Added a groups_keys_free function to the C API
  • Added a groups_keys_storage_namespace function to the C API
  • Updated the promotion functions based on the new status options

• Added an 'INVITE_NOT_SENT' status which is the default used when creating a new group memeber
• Added a groups_keys_free function to the C API
• Added a groups_keys_storage_namespace function to the C API
• Updated the promotion functions based on the new status options
@mpretty-cyro mpretty-cyro self-assigned this Jul 17, 2024
@mpretty-cyro mpretty-cyro requested a review from jagerman July 17, 2024 04:52
include/session/config/groups/members.hpp Outdated Show resolved Hide resolved
include/session/config/groups/members.hpp Outdated Show resolved Hide resolved
@mpretty-cyro mpretty-cyro requested review from simophin and Bilb July 17, 2024 05:28
jagerman added a commit to mpretty-cyro/libsession-util that referenced this pull request Jul 17, 2024
(There are other similar deleters that need freeing that should come
once this gets rebased with / merged with PR oxen-io#92).
These were meant to delete the internal C++ object, but weren't actually
doing so, and thus would be leaking the C++ objects when supposedly
being freed from the C API.

Also adds a missing `onion_request_builder_free` function and removes
the (wrong) doc implying that `onion_request_builder_build` frees the
object.
@jagerman jagerman force-pushed the new-invite-status branch from 7d32558 to bb392c3 Compare July 17, 2024 17:00
Copy link
Member

@jagerman jagerman left a comment

Choose a reason for hiding this comment

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

LGTM (aside from the comments left).

@mpretty-cyro mpretty-cyro requested a review from jagerman July 17, 2024 23:02
@mpretty-cyro mpretty-cyro enabled auto-merge July 18, 2024 00:49
@mpretty-cyro mpretty-cyro merged commit 8b00fd1 into oxen-io:dev Jul 18, 2024
1 check passed
@mpretty-cyro mpretty-cyro deleted the new-invite-status branch July 18, 2024 01:16
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.

4 participants