Skip to content

Commit

Permalink
Add members and group_context getters to StagedWelcome (openmls#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
erskingardner authored Oct 16, 2024
1 parent c34725c commit 7978df6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- [#1666](https://github.com/openmls/openmls/pull/1666): Add `members()` and `group_context()` getter methods to `StagedWelcome`.

## 0.6.0 (2024-09-04)

### Added
Expand Down
10 changes: 10 additions & 0 deletions openmls/src/group/mls_group/creation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,16 @@ impl StagedWelcome {
))
}

/// Get the [`GroupContext`] of this welcome's [`PublicGroup`].
pub fn group_context(&self) -> &GroupContext {
self.public_group.group_context()
}

/// Get an iterator over all [`Member`]s of this welcome's [`PublicGroup`].
pub fn members(&self) -> impl Iterator<Item = Member> + '_ {
self.public_group.members()
}

/// Consumes the [`StagedWelcome`] and returns the respective [`MlsGroup`].
pub fn into_group<Provider: OpenMlsProvider>(
self,
Expand Down

0 comments on commit 7978df6

Please sign in to comment.