mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
sigchat obtain device registration from Signal Provisioning server
This commit is contained in:
parent
36e7798d61
commit
3dff72b2b3
1 changed files with 15 additions and 1 deletions
|
|
@ -162,7 +162,21 @@ impl Manager {
|
||||||
Some(device_link_uri.as_str()),
|
Some(device_link_uri.as_str()),
|
||||||
)
|
)
|
||||||
.expect("qrcode failed");
|
.expect("qrcode failed");
|
||||||
Ok(false)
|
match ws.read() {
|
||||||
|
Ok(Message::Binary(registration)) => {
|
||||||
|
log::info!("raw registration ProtoBuffer: {:?}", registration);
|
||||||
|
ws.close();
|
||||||
|
Ok(true)
|
||||||
|
}
|
||||||
|
Ok(_) => {
|
||||||
|
log::warn!("unexpected Provisioning msg");
|
||||||
|
Err(link_err)
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
log::warn!("{e}");
|
||||||
|
Err(link_err)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::info!("{}", format!("{e}"));
|
log::info!("{}", format!("{e}"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue