Skip to content

Commit

Permalink
Various improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Mar 3, 2021
1 parent cf7c9af commit f3916ab
Show file tree
Hide file tree
Showing 12 changed files with 207 additions and 210 deletions.
2 changes: 1 addition & 1 deletion libsignal-service-actix/examples/registering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async fn main() -> Result<(), Error> {
&mut signaling_key,
)
.unwrap();
let credentials = Credentials {
let credentials = ServiceCredentials {
uuid: None,
phonenumber: args.username.clone(),
password: Some(password),
Expand Down
5 changes: 3 additions & 2 deletions libsignal-service-actix/src/provisioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use libsignal_protocol::{
};
use libsignal_service::{
configuration::ServiceConfiguration,
messagepipe::Credentials,
messagepipe::ServiceCredentials,
prelude::PushService,
provisioning::{ProvisioningError, ProvisioningPipe, ProvisioningStep},
push_service::{ConfirmDeviceMessage, DeviceId},
Expand Down Expand Up @@ -108,9 +108,10 @@ where

// we need to authenticate with the phone number
// to confirm the new device
// TODO: we should now be able to override credentials?
let mut push_service = AwcPushService::new(
service_configuration.clone(),
Some(Credentials {
Some(ServiceCredentials {
phonenumber: phone_number.clone(),
uuid: None,
password: Some(password.to_string()),
Expand Down

0 comments on commit f3916ab

Please sign in to comment.