Skip to content

Commit

Permalink
Simplified syncComplete evaluation expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Mar 14, 2024
1 parent 34a9eeb commit cb04f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ARTRealtimePresence.m
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ - (BOOL)syncComplete {
}

- (BOOL)syncComplete_nosync {
return !(_syncState == ARTPresenceSyncInitialized || _syncState == ARTPresenceSyncStarted);
return _syncState == ARTPresenceSyncEnded || _syncState == ARTPresenceSyncFailed;
}

- (ARTEventListener *)subscribe:(ARTPresenceMessageCallback)callback {
Expand Down

0 comments on commit cb04f96

Please sign in to comment.