Improvement of file processing and video snapshot

This commit is contained in:
2025-07-25 13:14:59 +08:00
parent d5fb00a8a9
commit d7acf4fedf
8 changed files with 460 additions and 209 deletions

View File

@@ -74,7 +74,7 @@ public class ChatMember : ModelBase
public Guid ChatRoomId { get; set; }
public ChatRoom ChatRoom { get; set; } = null!;
public Guid AccountId { get; set; }
[NotMapped] public Account Account { get; set; } = null!;
[NotMapped] public Account? Account { get; set; }
[MaxLength(1024)] public string? Nick { get; set; }

View File

@@ -260,7 +260,8 @@ public partial class ChatService(
}
else if (member.Notify == ChatMemberNotify.Mentions) continue;
accountsToNotify.Add(member.Account.ToProtoValue());
if (member.Account is not null)
accountsToNotify.Add(member.Account.ToProtoValue());
}
logger.LogInformation($"Trying to deliver message to {accountsToNotify.Count} accounts...");
@@ -596,4 +597,4 @@ public class SyncResponse
{
public List<MessageChange> Changes { get; set; } = [];
public Instant CurrentTimestamp { get; set; }
}
}