Skip to content

Commit

Permalink
Drop old unused ConfirmDeviceMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Jun 24, 2024
1 parent 8e9ab26 commit d56bc59
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions libsignal-service/src/provisioning/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use libsignal_protocol::{
DeviceId, IdentityKey, IdentityKeyPair, PrivateKey, PublicKey,
};
use prost::Message;
use serde::{Deserialize, Serialize};
use serde::Deserialize;
use url::Url;
use uuid::Uuid;
use zkgroup::profiles::ProfileKey;
Expand All @@ -31,7 +31,6 @@ use crate::{
HttpAuth, LinkAccountAttributes, LinkCapabilities, LinkRequest,
LinkResponse, PushService, ServiceIds,
},
utils::serde_base64,
};

pub use crate::proto::{
Expand Down Expand Up @@ -102,20 +101,6 @@ pub fn generate_registration_id<R: rand::Rng + rand::CryptoRng>(
csprng.gen_range(1..16380)
}

/// Message received when linking a new secondary device.
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub(crate) struct ConfirmDeviceMessage {
#[serde(with = "serde_base64")]
pub signaling_key: Vec<u8>,
pub supports_sms: bool,
pub fetches_messages: bool,
pub registration_id: u32,
pub pni_registration_id: u32,
#[serde(with = "serde_base64", skip_serializing_if = "Vec::is_empty")]
pub name: Vec<u8>,
}

#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ConfirmCodeResponse {
Expand Down

0 comments on commit d56bc59

Please sign in to comment.