Restored messages are not searchable
Describe the bug When setting up a new device and restoring from a backup of an existing Wire installation, only new messages sent after the new device was set up show up in search results. Messages that were restored from the backup are not searchable on the new device.
To Reproduce
- On a device with an existing Wire installation, create a backup using the app's backup utility (Settings > Account > Back up conversations)
- Move the backup file to a new phone where Wire is installed but not yet setup
- When setting up the new phone, choose to restore from the backup file
- Upon completing setup, try searching for any words contained in messages you had sent in the past
- Observe that there are no search results from before the time at which you restored the backup to the new device
Expected behavior Messages restored from a backup on a new device should be searchable.
Smartphone (please complete the following information):
- Wire version that exhibits the issue: 3.57.948
- Last Wire version that did not exhibit the issue (if applicable): N/A
- Android OS version used to run Wire: 11
- Is this a custom firmware or a stock one: Stock
- Mobile phone model/manufacturer: Google Pixel 4a
- Mobile network type (EDGE/LTE/Wi-Fi/Offline): Wi-Fi
Additional context I had set up the new phone with wire as soon as the new backup functionality (that didn't change device ID) was released. The version on which I created/restored the backup initially was 3.55.939 -- the new phone has since updated to 3.57.948 but the issue persists.
I can confirm this on the recent Android version 3.63.968
Just tried restoring messages on versio 3.65.979 and I can confirm that the search problem still persists.
Would be nice if there was a way to reindex the search database on demand. Could also be useful in other cases. I've seen a lot of duplicated search results, maybe that has something to do with search index being out of whack.
I can confirm that this is still an issue in the latest version. Is there anything I can do to help implement this?