element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
Apache License 2.0
10.69k stars 1.88k forks source link

Search is broken after message edits #27386

Closed rda0 closed 3 weeks ago

rda0 commented 3 weeks ago

Steps to reproduce

  1. Create a new room (encrypted or unencrypted)
  2. Send message: foo
  3. Send message: bar
  4. Search for foo or bar works :heavy_check_mark:
  5. Edit the bar message: bar -> foo

Outcome

What did you expect?

  1. Search for foo shows 2 foo results
  2. Search for bar shows nothing (I think I would not expect to find the original message before the edit)

    What happened instead?

  3. Search for foo: shows nothing (No more results)
  4. Search for bar: shows 2(1) foo result (I think it only finds 1 message and the other is shown as surrounding text)

Operating system

Linux

Browser information

Firefox 125.0.2 (64-bit)

URL for webapp

app.element.io

Application version

Element version: 1.11.65

Homeserver

matrix.org, phys.ethz.ch

Will you send logs?

Yes

t3chguy commented 3 weeks ago

The search is done by the Matrix Server, so you'd have to open your issue there. You haven't specified which server you are using so I cannot point you to the appropriate repository.

rda0 commented 3 weeks ago

@t3chguy Done. update: homeserver info (matrix.org). It happens in encrypted and unencrypted rooms.

t3chguy commented 3 weeks ago

matrix.org uses https://github.com/element-hq/synapse/