omikit-plugin 3.2.77 → 3.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,7 +177,15 @@ class CallManager {
|
|
|
177
177
|
let message = user.string(forKey: "omicall/prefixMissedCallMessage") ?? ""
|
|
178
178
|
let content = UNMutableNotificationContent()
|
|
179
179
|
content.title = title
|
|
180
|
-
|
|
180
|
+
|
|
181
|
+
if let nameCallerNumber = call.callerNumber {
|
|
182
|
+
let callerName = call.callerName ?? ""
|
|
183
|
+
let nameShow = callerName.count > 0 ? callerName : nameCallerNumber
|
|
184
|
+
content.body = "\(message) \(nameShow)"
|
|
185
|
+
} else {
|
|
186
|
+
content.body = "\(message) \(call.callerNumber!)"
|
|
187
|
+
}
|
|
188
|
+
|
|
181
189
|
content.sound = .default
|
|
182
190
|
content.userInfo = [
|
|
183
191
|
"omisdkCallerNumber": call.callerNumber,
|