Drop the identity avatar from the app's "Signing as" row

The per-app detail row in the Apps page no longer carries an identity avatar.
The approval dialog and the Connect dialog keep theirs; the expanded details
row is back to plain text.
This commit is contained in:
raucao committed 2026-11-28 16:35:51 +04:00
1 parent 1cc2dd1319
commit d4bb9d5978
1 file changed
+5 -17
+5 -17
View File
@@ -317,31 +317,19 @@ impl Ui {
// Which identity this app signs as. This is the binding the responder
// resolves per request.
let bound = PublicKey::parse(&app.identity).ok();
let (signing_as, signing_npub, signing_avatar) = match &bound {
Some(identity) => {
let label = self.state.identity_label(identity);
(
format!("Signing as {label}"),
identity.to_bech32().unwrap_or_else(|_| identity.to_hex()),
// The signing identity's avatar, drawn the same as the
// application's above.
plain::avatar(
32,
Some(label.as_str()),
self.state.icons().texture(&identity.to_hex()).as_ref(),
),
)
}
let (signing_as, signing_npub) = match bound {
Some(identity) => (
format!("Signing as {}", self.state.identity_label(&identity)),
identity.to_bech32().unwrap_or_else(|_| identity.to_hex()),
),
None => (
"Signing as unknown".to_string(),
"paired before identities existed".to_string(),
plain::avatar(32, None, None),
),
};
let signing_as_row = plain::row(&signing_as, &plain::shorten_npub(&signing_npub));
signing_as_row.set_subtitle_lines(1);
signing_as_row.set_tooltip_text(Some(&signing_npub));
signing_as_row.add_prefix(&signing_avatar);
row.add_row(&signing_as_row);
if app.policy.kinds.is_empty() && app.policy.methods.is_empty() {