🐛 Fix message notification missing action uri

This commit is contained in:
LittleSheep 2025-06-14 17:06:30 +08:00
parent c8b1c1ba55
commit d00917fb39

View File

@ -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;