-
Notifications
You must be signed in to change notification settings - Fork 261
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
refactor!(send queue): move RoomSendQueue::unwedge
to the SendHandle
type
#4226
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4226 +/- ##
==========================================
+ Coverage 84.83% 84.85% +0.02%
==========================================
Files 273 273
Lines 29519 29522 +3
==========================================
+ Hits 25042 25052 +10
+ Misses 4477 4470 -7 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a nice modification. The FFI API is nicer and less error-prone like this.
/// | ||
/// * `transaction_id` - The send queue transaction identifier of the local | ||
/// echo that should be unwedged. | ||
pub async fn try_resend(&self, transaction_id: String) -> Result<(), ClientError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is totally removed. Is it intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's moved to SendHandle::try_resend()
:)
// TODO(bnjbvr): remove this, once we have settled the `SendHandle` vs `SendAttachmentHandle` | ||
// situation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This better encapsulates the transaction id of the send handle. Also introduced a FFI method to retrieve the
SendHandle
of a timeline local echo.Let's see how hard it becomes in practice for EX apps, cc @jmartinesp @stefanceriu.
Part of #4201