Skip to content

Commit

Permalink
IsSyncing flag in PollingService now get in to True before HTTP sync …
Browse files Browse the repository at this point in the history
…happene
  • Loading branch information
k-karuna committed Oct 8, 2022
1 parent f89b1f1 commit ccd3956
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Matrix.Sdk/Core/Domain/Services/PollingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,12 @@ private async Task PollAsync()
try
{
_pollingTimer!.Change(Timeout.Infinite, Timeout.Infinite);

IsSyncing = true;

SyncResponse response = await _eventService.SyncAsync(_accessToken!, _cts.Token,
_timeout, _nextBatch);

SyncBatch syncBatch = SyncBatch.Factory.CreateFromSync(response.NextBatch, response.Rooms);

IsSyncing = true;

_nextBatch = syncBatch.NextBatch;
_timeout = Constants.LaterSyncTimout;

Expand Down
2 changes: 1 addition & 1 deletion Matrix.Sdk/Matrix.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Authors>Mikhail Tatarenko</Authors>
<Product>Matrix.Sdk</Product>
<Description>This open-source library allows you to build .NET apps compatible with Matrix Protocol - http://www.matrix.org.</Description>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
<Copyright>Copyright © Baking Bad 2019-2022</Copyright>
<Nullable>enable</Nullable>
<TargetFramework>netstandard2.0</TargetFramework>
Expand Down

0 comments on commit ccd3956

Please sign in to comment.