mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
chore(links): do not open confirmation for "mailto:" links
- the domain for those is empty anyway
This commit is contained in:
parent
224dd5e58d
commit
f4040fb580
@ -438,7 +438,7 @@ Item {
|
||||
}
|
||||
|
||||
function onOpenLinkWithConfirmation(link: string, domain: string) {
|
||||
if (appMainLocalSettings.whitelistedUnfurledDomains.includes(domain))
|
||||
if (appMainLocalSettings.whitelistedUnfurledDomains.includes(domain) || link.startsWith("mailto:"))
|
||||
globalConns.onOpenLink(link)
|
||||
else
|
||||
popups.openConfirmExternalLinkPopup(link, domain)
|
||||
@ -1781,7 +1781,7 @@ Item {
|
||||
clip: false
|
||||
|
||||
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
|
||||
function isSquareShape(data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user