From 36648a023719061a999d8d5f4d2efc43f3dd15a5 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 15 Mar 2025 18:33:49 +0100 Subject: Extend invite listener API --- LibMatrix/Helpers/SyncHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LibMatrix/Helpers/SyncHelper.cs') diff --git a/LibMatrix/Helpers/SyncHelper.cs b/LibMatrix/Helpers/SyncHelper.cs index adcc714..4cbe73f 100644 --- a/LibMatrix/Helpers/SyncHelper.cs +++ b/LibMatrix/Helpers/SyncHelper.cs @@ -73,6 +73,8 @@ public class SyncHelper(AuthenticatedHomeserverGeneric homeserver, ILogger? logg else if (Filter is not null) _filterId = (await homeserver.UploadFilterAsync(Filter)).FilterId; else _filterId = null; + + _filterIsDirty = false; } public async Task SyncAsync(CancellationToken? cancellationToken = null) { @@ -115,7 +117,7 @@ public class SyncHelper(AuthenticatedHomeserverGeneric homeserver, ILogger? logg // logger?.LogInformation("SyncHelper: Calling: {}", url); try { - SyncResponse? resp = null; + SyncResponse? resp; if (UseInternalStreamingSync) { resp = await homeserver.ClientHttpClient.GetFromJsonAsync(url, cancellationToken: cancellationToken ?? CancellationToken.None); logger?.LogInformation("Got sync response: ~{} bytes, {} elapsed", resp.ToJson(false, true, true).Length, sw.Elapsed); -- cgit 1.5.1