♻️ Remove chat message in app database

This commit is contained in:
2026-01-02 02:00:04 +08:00
parent 913a6e7382
commit 24b1f24dea
6 changed files with 2170 additions and 707 deletions

View File

@@ -125,10 +125,6 @@ public class BroadcastEventHandler(
using var scope = serviceProvider.CreateScope();
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
await db.ChatMembers
.Where(m => m.AccountId == evt.AccountId)
.ExecuteDeleteAsync(cancellationToken: stoppingToken);
await using var transaction = await db.Database.BeginTransactionAsync(cancellationToken: stoppingToken);
try
{