[X] I have tested my contribution on these devices:
Virtual device W, Pixel 3a on Android 9 / API 28
Virtual device X, Pixel 3a on Android 14 / API 34
[X] My contribution is fully baked and ready to be merged as is
[X] I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234syntax
Description
Searching messages and entering a non-alphanumeric character as the first character caused an crash & restart. This was due to the search being performed after each character entered, and any illegal character entered as the 1st character is replaced with a space - so in effect we are searching on the string " " which was causing the error.
Guards have been put in place to prevent search queries on strings of " " which eliminates the error.
Tested by entering a variety of non-alphanumeric characters as first search letter of message search both in regular user-to-user comms & in a group- all fine now.
Contributor checklist
Fixes #1234
syntaxDescription
Searching messages and entering a non-alphanumeric character as the first character caused an crash & restart. This was due to the search being performed after each character entered, and any illegal character entered as the 1st character is replaced with a space - so in effect we are searching on the string
" "
which was causing the error.Guards have been put in place to prevent search queries on strings of
" "
which eliminates the error.Tested by entering a variety of non-alphanumeric characters as first search letter of message search both in regular user-to-user comms & in a group- all fine now.