mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-28 18:40:09 +00:00
ios: prevent crash when no email account was setup (#2375)
This commit is contained in:
@@ -36,10 +36,12 @@ struct CreateSimpleXAddress: View {
|
||||
shareQRCodeButton(userAddress)
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
Spacer()
|
||||
|
||||
shareViaEmailButton(userAddress)
|
||||
.frame(maxWidth: .infinity)
|
||||
if MFMailComposeViewController.canSendMail() {
|
||||
Spacer()
|
||||
|
||||
shareViaEmailButton(userAddress)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
|
||||
@@ -192,7 +192,9 @@ struct UserAddressView: View {
|
||||
Section {
|
||||
QRCode(uri: userAddress.connReqContact)
|
||||
shareQRCodeButton(userAddress)
|
||||
shareViaEmailButton(userAddress)
|
||||
if MFMailComposeViewController.canSendMail() {
|
||||
shareViaEmailButton(userAddress)
|
||||
}
|
||||
shareWithContactsButton()
|
||||
autoAcceptToggle()
|
||||
learnMoreButton()
|
||||
|
||||
Reference in New Issue
Block a user