about summary refs log tree commit diff
path: root/MatrixAntiDmSpam/InviteStore.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-26 11:43:17 +0100
committerRory& <root@rory.gay>2025-03-26 11:43:57 +0100
commit41b14d6621e2579edf55ccf83ca563cb31d09a2d (patch)
tree8bd74f175fef1f4d8edabc324f15aa4f921078e2 /MatrixAntiDmSpam/InviteStore.cs
parentWork on README, add license (diff)
downloadMatrixAntiDmSpam-41b14d6621e2579edf55ccf83ca563cb31d09a2d.tar.xz
Simplify invite store, use multiple threads for evaluating policies to scale beyond unreasonable policy counts
Diffstat (limited to 'MatrixAntiDmSpam/InviteStore.cs')
-rw-r--r--MatrixAntiDmSpam/InviteStore.cs15
1 files changed, 0 insertions, 15 deletions
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<Func<InviteHandlerHostedService.InviteEventArgs, Task>> OnInviteReceived { get; set; } = []; -} \ No newline at end of file