Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECO-4686][Protocol-2] Implement internal presence #410

Merged
merged 7 commits into from
Jul 3, 2024

Conversation

sacOO7
Copy link
Contributor

@sacOO7 sacOO7 commented Jun 6, 2024

PR description

  • renamed :in_sync enum to :sync_completed, since :in_sync is a very confusing term and doesn't go as per spec.
  • removed resume_sync_proc code that does client initiated sync when channel attaches with has_presence flag. This doesn't go as per spec.
  • added on_attach method to presence_manager that
  1. start or end sync depending on has_presence flag
  2. enter local members when on_attach method is called.
  • Added a new enter_client_with_id method to presence that enters local members with id. Earlier local members were entered at the end of the sync and didn't support entering members with given id.

sacOO7 added 2 commits June 6, 2024 15:11
1. Added private onAttach method to presence_manager
2. Depending on the has_presence_flag, sync is marked either as started or none
3. Entering local members when onAttach is called
4. Removed client initiated sync from presence code ( as per spec )
5. Removed entering local members at the end of the sync
@github-actions github-actions bot temporarily deployed to staging/pull/410/features June 6, 2024 10:06 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/410/docs June 6, 2024 10:07 Inactive
@sacOO7 sacOO7 requested a review from umair-ably June 6, 2024 10:10
@sacOO7 sacOO7 marked this pull request as ready for review June 6, 2024 10:11
@lawrence-forooghian
Copy link
Collaborator

And, same question as in #409 (review) re tests?

@sacOO7
Copy link
Contributor Author

sacOO7 commented Jun 24, 2024

And, same question as in #409 (review) re tests?

Tests fixed as a part of #411

@github-actions github-actions bot temporarily deployed to staging/pull/410/features June 24, 2024 12:01 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/410/docs June 24, 2024 12:02 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/410/features June 25, 2024 05:04 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/410/docs June 25, 2024 05:04 Inactive
Base automatically changed from feature/protocol-2-resume-recover to feature/integration-protocol-2 July 3, 2024 11:48
@sacOO7 sacOO7 merged commit cbdf545 into feature/integration-protocol-2 Jul 3, 2024
3 of 23 checks passed
@sacOO7 sacOO7 deleted the feature/protocol-2-presence branch July 3, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants