FS#74453 - [element-desktop] <= 1.10.8-2 Broken search (fix included)

Attached to Project: Community Packages
Opened by Pascal Ernster (hardfalcon) - Tuesday, 12 April 2022, 12:59 GMT
Last edited by Bruno Pagani (ArchangeGabriel) - Tuesday, 12 April 2022, 21:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

For several weeks/months, the search functionality inside element-desktop has been broken for me - even creating the search index kept failing (or taking indefinitely long without producing any results).

Manually rebuilding the package with the freshly released 1.10.9 didn't fix the issue either, but I've now done the following changes, and it finally fixed the search functionality for me:

- update the sqlcipher package to version 4.5.1 (currently it's at version 4.5.0)

- rebuild element-desktop 1.10.9 with the aforementioned sqlcipher, and with the following patch applied on top of encapsulate-sqlcipher.diff:
https://github.com/vector-im/element-desktop/pull/334/commits/cfccc18a2e35e6be2dbf41fa9875ce4926649c14

- end the element-desktop process, install the updated packages, execute
rm -rf "${HOME}/.config/Element/EventStore"
then restart element-desktop and re-enable search indexing in the settings dialogue ("Privacy and Security" tab, section "Search")

Of these 3 steps, the third one was *not* required on the machine of a friend of mine, but was required on my machine.
Also, I'm not sure if it was only the first or only the second or the combination of both steps, but I don't seen any reason not to perform those two steps.

Anyway, the tl;dr is: When you built element-desktop 1.10.9, please include the patch https://github.com/vector-im/element-desktop/pull/334/commits/cfccc18a2e35e6be2dbf41fa9875ce4926649c14
This task depends upon

Closed by  Bruno Pagani (ArchangeGabriel)
Tuesday, 12 April 2022, 21:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  element-desktop 1.10.9-1.
Comment by Bruno Pagani (ArchangeGabriel) - Tuesday, 12 April 2022, 20:48 GMT
Updating sqlcipher is pointless since the patch makes it use the internal copy instead, so as a matter of fact we don’t depend or use the Arch sqlcipher anymore.

Regarding the second point, I’ve actually pushed that change some minutes before this ticket was assigned to me (I follow everything that happens in this repo, and especially regarding this patch since it’s coming from here, so I had the notification for the commit) as you can see here: https://archlinux.org/packages/community/x86_64/element-desktop/. So please tell me if that works on your side.
Comment by Pascal Ernster (hardfalcon) - Tuesday, 12 April 2022, 20:56 GMT
Thanks for the clarifications. element-desktop 1.10.9-1 does indeed solve the "search function doesn't work" issue for me, so this bug report can be closed. Thanks again for your swift reaction! :)

Loading...