Changing search scope produces incorrect results

(#2745) Bug Fixed desktop search

Observed behaviour

after step 2: message count is at about 1500 after step 3: message count is at about 1500 (although it should be higher now) after step 4: message count jumps to over 9000 (although it should have been the same as step 2)

Reproduction steps

  1. have the scope set to current community before searching
  2. search for from:hampus#0000
  3. change the search scope with the new button left of the sorting button to all communities (don't use the magnifying glass in the search bar)
  4. change it back to current community (again not with the magnifying glass)

Build information

Canary 783 (c71cae2), Host 0.0.225, Windows 11 10.0.26200 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US

Platform

Windows

Details

Expected behaviour apply the correct scope
  1. Rex changed the status from Needs triage to Fixed

3 comments

Sign in with Fluxer to comment and vote.
Comment by Fullest
FullestReviewer 1 vote
Can reproduce CR: Canary 783 (c71cae2), Host 0.0.225, Linux 7.0.7-100.fc43.x86_64 (x64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US
Comment by ternera
terneraMod 1 vote
Can reproduce CR - Canary 794 (5298f88), Host 0.0.239, macOS 26.3.1 (arm64), Electron 41.2.2, Chrome 146.0.7680.188, Node 24.14.1, Locale en-US