element-hq / element-hq/element-web

Element search shows incorrect result count & hides user’s own messages

Open
#31,997 11 comments 0 reactions 0 assignees View on GitHub
A-Electron A-Search O-Frequent O-Occasional S-Minor T-Defect Z-Upstream
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

### Steps to Reproduce

1. Open Element Desktop (v1.12.7)
2. Go to a room where you’ve had a conversation that includes a unique keyword (like a Jira ticket ID - e.g., `ABC-12345`)
3. Make sure **you personally** have sent a message that includes that keyword, and so have others
4. In the top-right search bar, type that exact keyword and hit Enter
5. Look at the top - it'll say something like "4 results found"
6. Scroll through the results. You’ll probably see **fewer results than the count says**
7. You’ll notice your **own messages** with that keyword are missing from the visible results
8. Manually scroll in the chat - you’ll find your message is there, just **wasn’t shown in the search results**

### Outcome

#### What did you expect?

If it says "4 results found", I expect to **see 4 messages** - including the ones I wrote myself

#### What happened instead?

It says "4 results found", but only shows **2 or 3**
Turns out, **my own messages are missing** from the results - even though they’re counted

### Operating system

macOS

### Application version

Element Version 1.12.7 (1.12.7)

### How did you install the app?

https://element.io/en/download

### Homeserver

Synapse 1.144.0

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.