chore(peekaboo): update submodule
This commit is contained in:
@@ -8,13 +8,13 @@ enum ControlRequestHandler {
|
|||||||
notifier: NotificationManager = NotificationManager(),
|
notifier: NotificationManager = NotificationManager(),
|
||||||
logger: Logger = Logger(subsystem: "com.steipete.clawdis", category: "control")) async throws -> Response
|
logger: Logger = Logger(subsystem: "com.steipete.clawdis", category: "control")) async throws -> Response
|
||||||
{
|
{
|
||||||
// Keep `status` responsive even if the main actor is busy.
|
// Keep `status` responsive even if the main actor is busy.
|
||||||
let paused = UserDefaults.standard.bool(forKey: pauseDefaultsKey)
|
let paused = UserDefaults.standard.bool(forKey: pauseDefaultsKey)
|
||||||
if paused, case .status = request {
|
if paused, case .status = request {
|
||||||
// allow status through
|
// allow status through
|
||||||
} else if paused {
|
} else if paused {
|
||||||
return Response(ok: false, message: "clawdis paused")
|
return Response(ok: false, message: "clawdis paused")
|
||||||
}
|
}
|
||||||
|
|
||||||
switch request {
|
switch request {
|
||||||
case let .notify(title, body, sound, priority, delivery):
|
case let .notify(title, body, sound, priority, delivery):
|
||||||
|
|||||||
Reference in New Issue
Block a user