[Fix] Calling & Invites
This commit is contained in:
parent
7164f4671d
commit
9e9e3597da
8 changed files with 220 additions and 39 deletions
|
|
@ -485,7 +485,7 @@ impl IpcClient {
|
|||
}
|
||||
}
|
||||
ResponsePayload::InvitationCreated(invitation) => format!(
|
||||
"Created {:?} invitation {}\nToken: {}\nExpires: {}{}",
|
||||
"Created {:?} invitation {}\nToken: {}\nExpires: {}{}{}",
|
||||
invitation.authority,
|
||||
invitation.invitation_id,
|
||||
invitation.raw_token.0,
|
||||
|
|
@ -495,6 +495,11 @@ impl IpcClient {
|
|||
.as_ref()
|
||||
.map(|url| format!("\nLink: {url}"))
|
||||
.unwrap_or_default(),
|
||||
if invitation.mirror_synced {
|
||||
String::new()
|
||||
} else {
|
||||
"\nWarning: local invitation metadata is still synchronizing.".into()
|
||||
},
|
||||
),
|
||||
ResponsePayload::Invitations(invitations) => {
|
||||
if invitations.is_empty() {
|
||||
|
|
|
|||
|
|
@ -418,10 +418,15 @@ impl UsersScreen {
|
|||
Ok(iota_ipc::ResponseResult::Ok(
|
||||
iota_ipc::ResponsePayload::InvitationCreated(invitation),
|
||||
)) => Ok(format!(
|
||||
"Invitation {} created. Token: {} Link: {}",
|
||||
"Invitation {} created. Token: {} Link: {}{}",
|
||||
invitation.invitation_id,
|
||||
invitation.raw_token.0,
|
||||
invitation.short_url.as_deref().unwrap_or("unavailable")
|
||||
invitation.short_url.as_deref().unwrap_or("unavailable"),
|
||||
if invitation.mirror_synced {
|
||||
""
|
||||
} else {
|
||||
" Local metadata is still synchronizing."
|
||||
}
|
||||
)),
|
||||
Ok(iota_ipc::ResponseResult::Error(error)) => {
|
||||
Err(format!("Create invitation failed: {error}"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue