mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 05:46:29 +03:00
feat: do not show the address in invite QR code SVG
Addresses take space and sometimes do not fit. We generally want to deemphasize addresses in the UI, especially randomized chatmail addresses.
This commit is contained in:
@@ -859,10 +859,10 @@ pub(crate) async fn setup_contact_qr_description(
|
||||
display_name: &str,
|
||||
addr: &str,
|
||||
) -> String {
|
||||
let name = if display_name == addr {
|
||||
let name = if display_name.is_empty() {
|
||||
addr.to_owned()
|
||||
} else {
|
||||
format!("{display_name} ({addr})")
|
||||
display_name.to_owned()
|
||||
};
|
||||
translated(context, StockMessage::SetupContactQRDescription)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user