mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-19 12:56:06 +00:00
Add notification sync support
This commit is contained in:
1 parent
a352e9ed1c
commit
48eb5be4a5
8 files changed
+1014
-9
No files matched your search
@@ -139,6 +139,7 @@ public struct TransferMetadata {
|
||||
case text
|
||||
case url
|
||||
case wifiPassword
|
||||
case notificationSync
|
||||
}
|
||||
|
||||
private func getSummary() -> String {
|
||||
@@ -196,6 +197,12 @@ public struct TransferMetadata {
|
||||
|
||||
case .wifiPassword:
|
||||
return "DeviceSendingWifiPassword".localized(with: deviceName)
|
||||
|
||||
case .notificationSync:
|
||||
if let textDescription, !textDescription.isEmpty {
|
||||
return textDescription
|
||||
}
|
||||
return "NotificationSyncConsentPromptFromDevice".localized(with: deviceName)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user