From 14931ea211415ce504152945d75eecb1354f5648 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 19 Mar 2025 11:44:42 +0100 Subject: Fix invite listener sync resume logic --- .../LibMatrix.Utilities.Bot/Services/InviteListenerHostedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Utilities/LibMatrix.Utilities.Bot') diff --git a/Utilities/LibMatrix.Utilities.Bot/Services/InviteListenerHostedService.cs b/Utilities/LibMatrix.Utilities.Bot/Services/InviteListenerHostedService.cs index 96b66ec..9a5e3d9 100644 --- a/Utilities/LibMatrix.Utilities.Bot/Services/InviteListenerHostedService.cs +++ b/Utilities/LibMatrix.Utilities.Bot/Services/InviteListenerHostedService.cs @@ -68,7 +68,7 @@ public class InviteHandlerHostedService( await inviteHandler(inviteEventArgs); }); - if (listenerSyncConfiguration.InitialSyncOnStartup) + if (!listenerSyncConfiguration.InitialSyncOnStartup) _syncHelper.SyncReceivedHandlers.Add(sync => File.WriteAllTextAsync(nextBatchFile, sync.NextBatch, cancellationToken)); await _syncHelper.RunSyncLoopAsync(cancellationToken: cancellationToken); } -- cgit 1.5.1