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

Add API to wait for initial messages sync on startup #197

Closed
wants to merge 14 commits into from

Conversation

gferon
Copy link
Collaborator

@gferon gferon commented Oct 9, 2023

To imitate what Signal-Desktop does on startup, which was always necessary. This is just a workaround and not the final API I think makes sense (we should use type-states to make it obvious that it's required to sync once).

That way the flow can look like this:

  • Link
  • Request contacts sync
  • Let clients wait for /v1/queue/empty on first start of the message loop to display something.

@Schmiddiii
Copy link
Contributor

Does not work for me. It now does not time out anymore, but the contacts are not synced anymore.

presage-cli/src/main.rs Show resolved Hide resolved
presage/src/manager.rs Outdated Show resolved Hide resolved
@gferon gferon changed the title Attempting to fix quirky contacts sync Add API to wait for initial messages sync on startup Oct 26, 2023
@gferon
Copy link
Collaborator Author

gferon commented Nov 16, 2023

Most of it was merged and/or being integrated as part of #205

@gferon gferon closed this Nov 16, 2023
@gferon gferon added this to the 0.6.0 milestone Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants