Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent using archive table if it doesn't exist #775

Merged
merged 4 commits into from
Oct 3, 2023

Conversation

esensar
Copy link
Contributor

@esensar esensar commented Oct 3, 2023

This closes #773

try {
contentResolver.update(uri, values, selection, selectionArgs)
} catch (sqliteException: SQLiteException) {
if (sqliteException.message?.contains("no such column: archived") == true && config.useThreadsArchive) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how reliable is this, we will see

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was worried about disabling archive on any kind of SQLiteException, especially since that option is hidden to the users, so I tried to make it a bit more specific.

@tibbi tibbi merged commit 1d804eb into SimpleMobileTools:master Oct 3, 2023
@tibbi
Copy link
Member

tibbi commented Oct 3, 2023

ok thanks, should be good

@esensar esensar deleted the fix/missing-archive-table branch October 3, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After update 5.18.2 to 5.19.1 , sqlite error , no display sms
2 participants