-
Notifications
You must be signed in to change notification settings - Fork 268
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
feat(send queue): allow editing media captions #4277
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4277 +/- ##
==========================================
- Coverage 85.04% 84.97% -0.07%
==========================================
Files 274 274
Lines 30043 30230 +187
==========================================
+ Hits 25550 25689 +139
- Misses 4493 4541 +48 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
… to `mark_dependent_queued_requests_as_ready`
017431e
to
f070236
Compare
…t yet test(timeline): add an integration test for sending an attachment test(timeline): add tests for multiple caption edits and local reaction to a media upload
d16775c
to
ddacf1b
Compare
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.
Apart from those small comments this is all really nice and makes perfect sense to me ... and the tests are just chef's kiss 👌
let event_id = event_id!("$1"); | ||
let own_user_id = user_id!("@me:saucisse.bzh"); | ||
|
||
let filename = "rickroll.gif"; |
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.
🕺
let QueuedRequestKind::Event { content: serialized_content } = found.kind else { | ||
return Err(InvalidMediaCaptionEdit); | ||
}; |
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.
Just for my understanding: finding a non-event kind here is a developer error and the wrong txn was passed in, right?
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.
Indeed, all these errors would either be caused by a wrong txn_id, or a super inconsistent internal state 👍
This allows editing media captions:
make_edit_event
is sufficient,Fixes #4201