about summary refs log tree commit diff
path: root/LibMatrix/Helpers/SyncHelper.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-03-15 18:33:49 +0100
committerRory& <root@rory.gay>2025-03-15 18:33:49 +0100
commit36648a023719061a999d8d5f4d2efc43f3dd15a5 (patch)
tree807c91c900a470a0bd61d24b4dda0f1fead163f1 /LibMatrix/Helpers/SyncHelper.cs
parentAdd full invite data to invite handler callback (diff)
downloadLibMatrix-36648a023719061a999d8d5f4d2efc43f3dd15a5.tar.xz
Extend invite listener API
Diffstat (limited to 'LibMatrix/Helpers/SyncHelper.cs')
-rw-r--r--LibMatrix/Helpers/SyncHelper.cs4
1 files changed, 3 insertions, 1 deletions
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<SyncResponse?> 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<SyncResponse>(url, cancellationToken: cancellationToken ?? CancellationToken.None); logger?.LogInformation("Got sync response: ~{} bytes, {} elapsed", resp.ToJson(false, true, true).Length, sw.Elapsed);