feat: Add timestamp to event endpoint #2196
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2196
Loading…
Reference in a new issue
No description provided.
Delete branch "eleboucher/continuwuity:feat/msc3030-timestamp-to-event"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds MSC3030 timestamp-to-event lookup for jumping to room events by time.
Fixes: #2195
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
aa11dfeb38eaffd5fad2@ -275,0 +314,4 @@continue;};if pdu.origin_server_ts() >= ts {servers can lie about
origin_server_ts, this needs to behave properly even if it's a ridiculously high or low valuereturned back to a old linear search
Also Fixes #536
My problem with this PR is that trusting the origin timestamp lets origin servers make shit up and break jump-to-timeline for a room. Ideally we would have a database column that stores the time at which we received an event, and only fall back to the origin timestamp for events that are missing from that column.
101bfbda65eaffd5fad2eaffd5fad22366b0c3f52366b0c3f5eaffd5fad2eaffd5fad22a11634ef02a11634ef0d330930bb5