about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-19 11:44:42 +0100
committerRory& <root@rory.gay>2025-03-19 11:44:42 +0100
commit14931ea211415ce504152945d75eecb1354f5648 (patch)
tree540904174edb15db1fbdbe560e2183958fbf7bbf
parentSave some resources on PolicyRoom, add config to InviteListener to always ini... (diff)
downloadLibMatrix-14931ea211415ce504152945d75eecb1354f5648.tar.xz
Fix invite listener sync resume logic
-rw-r--r--Utilities/LibMatrix.Utilities.Bot/Services/InviteListenerHostedService.cs2
1 files changed, 1 insertions, 1 deletions
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); }