♻️ Refactor notification meta

This commit is contained in:
2025-07-29 23:23:40 +08:00
parent 409c83b030
commit 51697c31cb
5 changed files with 10 additions and 6 deletions

View File

@@ -241,10 +241,10 @@ public partial class ChatService(
Body = !string.IsNullOrEmpty(message.Content)
? message.Content[..Math.Min(message.Content.Length, 100)]
: "<no content>",
Meta = GrpcTypeHelper.ConvertObjectToByteString(metaDict),
ActionUri = $"/chat/{room.Id}",
IsSavable = false,
};
notification.Meta.Add(GrpcTypeHelper.ConvertToValueMap(metaDict));
List<Account> accountsToNotify = [];
foreach (var member in members)