You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Message search returns all edit versions instead of only the latest #2058
When searching for messages, if a message has been edited multiple times, the search results display all edit versions as separate results instead of only the most recent one. This creates duplicate/near-duplicate entries in the results, cluttering the search experience.
Reproduction
Send a message "hello world"
Edit the message like "hello matrix"
Edit the message again "hello matrix 2"
Search for the term "hello" used in the edits
Expected behavior
Only the latest version should appear in the search results for each message.
deduplicate search results by grouping items that share the same original event_id, and keep only the one with the highest origin_server_ts (the latest version).
Activity