Edited messages appear twice in fulltext search #3358
Labels
good first issue
Want to help with Dendrite? These are the issues to start with!
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
When a message is edited, they appear twice in the results of
/search
.While Element Web seems to aggregate the results and only returns one results, Element Android returns both. This may be a bit confusing.
IMO, Dendrite should only return the latest message.
The responsible code for this:
dendrite/syncapi/consumers/roomserver.go
Lines 593 to 627 in 14a6c10
We'd need to check if
m.relates.to
incontent
contains arel_type
ofm.replace
and then delete theevent_id
from the fulltext index before indexing the new event.The text was updated successfully, but these errors were encountered: