mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-19 12:56:06 +00:00
Support receiving links and properly reject unsupported attachments
closes #52, closes #73, closes #16, closes #3, closes #8
This commit is contained in:
1 parent
df43d58045
commit
61d2a49712
6 files changed
+77
-32
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user