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

Expose service_ids from refactored Registered typestate #209

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions presage/src/manager/registered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,13 @@ impl Registered {
self.data.signal_servers.into()
}

pub fn device_id(&self) -> u32 {
fn device_id(&self) -> u32 {
self.data.device_id.unwrap_or(DEFAULT_DEVICE_ID)
}

pub fn service_ids(&self) -> &ServiceIds {
&self.data.service_ids
}
}

/// Registration data like device name, and credentials to connect to Signal
Expand Down Expand Up @@ -120,10 +124,6 @@ impl RegistrationData {
self.registration_id
}

pub fn service_ids(&self) -> &ServiceIds {
&self.service_ids
}

pub fn profile_key(&self) -> ProfileKey {
self.profile_key
}
Expand Down
Loading