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

timeline: stringify the internal ID and allow setting a prefix to the internal ID #3351

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Apr 22, 2024

This will be handy to distinguish IDs coming from different timelines, and this will be useful for the permalink PR, where the "main"/live timeline may not have a prefix, but detached timelines may have one. With something like that, the apps will be able to transition from a detached timeline to the new one, and having different internal IDs for the events mean that their UI frameworks will be able to notice the change.

Supports #3234.

This will allow to define a prefix later, to distinguish detached
timelines from live timelines.
@bnjbvr bnjbvr marked this pull request as ready for review April 22, 2024 16:52
@bnjbvr bnjbvr requested a review from a team as a code owner April 22, 2024 16:52
@bnjbvr bnjbvr requested review from poljar and removed request for a team April 22, 2024 16:52
Copy link

codecov bot commented Apr 22, 2024

Codecov Report

Attention: Patch coverage is 90.32258% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 83.60%. Comparing base (c471ee4) to head (01fe3db).

Files Patch % Lines
crates/matrix-sdk-ui/src/timeline/builder.rs 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3351      +/-   ##
==========================================
+ Coverage   83.55%   83.60%   +0.05%     
==========================================
  Files         241      241              
  Lines       24910    24919       +9     
==========================================
+ Hits        20813    20833      +20     
+ Misses       4097     4086      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@poljar poljar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just hope that this won't be abused somehow to include metadata.

Makes sense.

@bnjbvr bnjbvr merged commit d986437 into main Apr 23, 2024
53 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/timeline-stringify-internal-id branch April 23, 2024 11:19
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