Support receiving links and properly reject unsupported attachments

closes #52, closes #73, closes #16, closes #3, closes #8
This commit is contained in:
Grishka committed 2023-09-26 04:58:09 +03:00
1 parent df43d58045
commit 61d2a49712
6 files changed
+77 -32

No files matched your search

+3 -1
View File
@@ -77,7 +77,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
notificationContent.title="NearDrop"
notificationContent.subtitle=String(format:NSLocalizedString("PinCode", value: "PIN: %@", comment: ""), arguments: [transfer.pinCode!])
let fileStr:String
if transfer.files.count==1{
if let textTitle=transfer.textDescription{
fileStr=textTitle
}else if transfer.files.count==1{
fileStr=transfer.files[0].name
}else{
fileStr=String.localizedStringWithFormat(NSLocalizedString("NFiles", value: "%d files", comment: ""), transfer.files.count)