From d00917fb392d2fbd8915aac83d1169177b563953 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 14 Jun 2025 17:06:30 +0800 Subject: [PATCH] :bug: Fix message notification missing action uri --- DysonNetwork.Sphere/Chat/ChatService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Sphere/Chat/ChatService.cs b/DysonNetwork.Sphere/Chat/ChatService.cs index 3fa0022..b14d7fb 100644 --- a/DysonNetwork.Sphere/Chat/ChatService.cs +++ b/DysonNetwork.Sphere/Chat/ChatService.cs @@ -93,7 +93,8 @@ public class ChatService( ["room_id"] = room.Id, ["images"] = message.Attachments .Where(a => a.MimeType != null && a.MimeType.StartsWith("image")) - .Select(a => a.Id).ToList() + .Select(a => a.Id).ToList(), + ["action_uri"] = $"/chat/{room.Id}" }; if (sender.Account.Profile is not { Picture: null }) metaDict["pfp"] = sender.Account.Profile.Picture.Id;