From 41b14d6621e2579edf55ccf83ca563cb31d09a2d Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 26 Mar 2025 11:43:17 +0100 Subject: Simplify invite store, use multiple threads for evaluating policies to scale beyond unreasonable policy counts --- MatrixAntiDmSpam/InviteStore.cs | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 MatrixAntiDmSpam/InviteStore.cs (limited to 'MatrixAntiDmSpam/InviteStore.cs') diff --git a/MatrixAntiDmSpam/InviteStore.cs b/MatrixAntiDmSpam/InviteStore.cs deleted file mode 100644 index d6e8d49..0000000 --- a/MatrixAntiDmSpam/InviteStore.cs +++ /dev/null @@ -1,15 +0,0 @@ -using LibMatrix.Utilities.Bot.Services; - -namespace MatrixAntiDmSpam; - -public class InviteStore { - - - public async Task AddInviteAsync(InviteHandlerHostedService.InviteEventArgs invite) { - foreach (var handler in OnInviteReceived) { - await handler(invite); - } - } - - public List> OnInviteReceived { get; set; } = []; -} \ No newline at end of file -- cgit 1.5.1