task description auto
This commit is contained in:
@@ -57,7 +57,7 @@ private func enqueue(_ op: @escaping @MainActor () async -> Void) {
|
||||
private func show(_ store: Store, _ taskId: String, _ tag: String, _ text: String) {
|
||||
let line = trimmed(text).split(separator: "\n", omittingEmptySubsequences: false).first.map(String.init) ?? ""
|
||||
let content = UNMutableNotificationContent()
|
||||
content.title = store.findTask(taskId).map { "byre · \($0.title)" } ?? "byre"
|
||||
content.title = store.findTask(taskId).map { "byre · \($0.name)" } ?? "byre"
|
||||
content.body = line.count > 200 ? "\(line.prefix(199))…" : line
|
||||
content.sound = .default
|
||||
content.userInfo = ["task_id": taskId, "origin": store.api.origin.absoluteString]
|
||||
|
||||
Reference in New Issue
Block a user