-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
…r spec
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,18 @@ internal Presence(IConnectionManager connection, RealtimeChannel channel, string | |
|
||
/// <summary> | ||
/// Has the sync completed. | ||
/// RTP13 | ||
Check failure on line 43 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 43 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 43 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 43 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 43 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 43 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
|
||
/// </summary> | ||
public bool IsSyncComplete => MembersMap.SyncCompleted && !IsSyncInProgress; | ||
/// | ||
[Obsolete("This property is deprecated, use SyncComplete instead")] | ||
public bool IsSyncComplete => SyncComplete; | ||
|
||
/// <summary> | ||
/// Checks if sync has completed | ||
/// RTP13 | ||
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net6.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
Check failure on line 51 in src/IO.Ably.Shared/Realtime/Presence.cs GitHub Actions / check (net7.0)
|
||
/// </summary> | ||
/// | ||
public bool SyncComplete => MembersMap.SyncCompleted && !IsSyncInProgress; | ||
|
||
/// <summary> | ||
/// Indicates whether there is currently a sync in progress. | ||
|
@@ -153,7 +163,7 @@ private async Task<bool> WaitForSyncAsync() | |
// The InternalSync should be completed and the channels Attached or Attaching | ||
void CheckAndSet() | ||
{ | ||
if (IsSyncComplete | ||
if (SyncComplete | ||
&& (_channel.State == ChannelState.Attached || _channel.State == ChannelState.Attaching)) | ||
{ | ||
tsc.TrySetResult(true); | ||
|