🐛 Fix message from call missing nonce

This commit is contained in:
LittleSheep 2025-05-25 15:54:39 +08:00
parent c562f52538
commit 916d9500a2

View File

@ -16,6 +16,7 @@ public class ChatService(
{
public async Task<Message> SendMessageAsync(Message message, ChatMember sender, ChatRoom room)
{
if (string.IsNullOrWhiteSpace(message.Nonce)) message.Nonce = Guid.NewGuid().ToString();
message.CreatedAt = SystemClock.Instance.GetCurrentInstant();
message.UpdatedAt = message.CreatedAt;