From 6dc0f523e03d75d87835bf67b0d37e0da96e378d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 1 Jun 2025 01:33:18 +0800 Subject: [PATCH] :bug: Trying to fix notification sound --- DysonNetwork.Sphere/Account/NotificationService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Sphere/Account/NotificationService.cs b/DysonNetwork.Sphere/Account/NotificationService.cs index 1d672bb..46a9e9e 100644 --- a/DysonNetwork.Sphere/Account/NotificationService.cs +++ b/DysonNetwork.Sphere/Account/NotificationService.cs @@ -215,6 +215,7 @@ public class NotificationService( ["meta"] = notification.Meta ?? new Dictionary(), }, ["mutable_content"] = true, + ["priority"] = notification.Priority >= 10 ? "high" : "normal", }; if (!string.IsNullOrWhiteSpace(notification.Title)) @@ -237,7 +238,7 @@ public class NotificationService( if (notification.Priority >= 5) { - dict["sound"] = new Dictionary { ["name"] = "default" }; + dict["sound"] = new Dictionary { ["name"] = "default", ["volume"] = 1.0 }; } dict["platform"] = platformCode;