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

Improved callback support added Task support and passing SessionRecord #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mitchcapper
Copy link
Contributor

@mitchcapper mitchcapper commented Aug 17, 2018

This modifies the existing callback support to work with Task based callbacks.  It also passes the SessionRecord (when available) to the callback (as not yet committed for prekey), needed for protocol version check code that already exists).

This allows for signal-csharp/libsignal-service-dotnet#34

@Trolldemorted
Copy link
Contributor

Won't this deadlock if you call decrypt on a task with a synchronization context? Do we need asynchronity here so far down in the signal stack?

Improved callback support added Task support and passing SessionRecord

 This modifies the existing callback support to work with Task based callbacks.  It also passes the session version (when available) to the callback (as not yet committed for prekey), needed for protocol version check code that already exists.
@mitchcapper mitchcapper force-pushed the callback_support_improvements_pr branch from 87c1b1f to 5f21f6c Compare February 14, 2021 09:51
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