chore(links): do not open confirmation for "mailto:" links

- the domain for those is empty anyway
This commit is contained in:
Lukáš Tinkl 2024-08-19 22:40:55 +02:00 committed by Lukáš Tinkl
parent 224dd5e58d
commit f4040fb580
1 changed files with 2 additions and 2 deletions

View File

@ -438,7 +438,7 @@ Item {
} }
function onOpenLinkWithConfirmation(link: string, domain: string) { function onOpenLinkWithConfirmation(link: string, domain: string) {
if (appMainLocalSettings.whitelistedUnfurledDomains.includes(domain)) if (appMainLocalSettings.whitelistedUnfurledDomains.includes(domain) || link.startsWith("mailto:"))
globalConns.onOpenLink(link) globalConns.onOpenLink(link)
else else
popups.openConfirmExternalLinkPopup(link, domain) popups.openConfirmExternalLinkPopup(link, domain)
@ -1781,7 +1781,7 @@ Item {
clip: false clip: false
delegate: StatusToastMessage { delegate: StatusToastMessage {
property bool isSquare : isSquareShape(model.actionData) readonly property bool isSquare : isSquareShape(model.actionData)
// Specific method to calculate image radius depending on if the toast represents some info about a collectible or an asset // Specific method to calculate image radius depending on if the toast represents some info about a collectible or an asset
function isSquareShape(data) { function isSquareShape(data) {