up-to-date xdg portals

Fixes #101
This commit is contained in:
Henry Hiles 2026-09-28 14:32:18 -04:00
commit 4bde7875fb
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 23 additions and 13 deletions

View file

@ -124,9 +124,18 @@ class NotificationController
id.toString(),
title: title,
body: body,
icon: icon == null ? null : XdgNotificationIconFile(icon.path),
defaultAction: "app.event",
defaultActionTarget: payload,
category: XdgNotificationCategory.imReceived,
priority: .normal,
buttons: [
// TODO: Impl when notif daemons actualy support imReplyWithText
// .new(
// label: "Reply",
// action: "app.reply",
// purpose: XdgNotificationButtonPurpose.imReplyWithText,
// ),
],
);
} else {
final notificationDetails = NotificationDetails(