sms-translate/app
Tom Levy 99cea602c8 Fix deletion of random SMS when trying to update threads
Commit 44c540b9 (Fixed updating last message after deleting (#167),
2021-09-04) introduced a hack to update the conversation snippet,
however there is a bug in that code: it tries to delete by thread ID,
but the condition is applied to the SMS table, not to the threads
table.[1] So instead of deleting the thread with that ID, it deletes
whichever SMS happens to have that ID.

The fix is to change the condition to an always-false condition, so
that no messages will be deleted. The threads will still get
updated.[2]

Fixes #148.

[1] https://android.googlesource.com/platform/packages/providers/TelephonyProvider/+/android14-release/src/com/android/providers/telephony/MmsSmsProvider.java#1405
[2] https://android.googlesource.com/platform/packages/providers/TelephonyProvider/+/android14-release/src/com/android/providers/telephony/MmsSmsProvider.java#1409
2024-05-20 01:43:25 +00:00
..
src Fix deletion of random SMS when trying to update threads 2024-05-20 01:43:25 +00:00
.gitignore Update .gitignore 2024-01-23 00:08:18 +05:30
build.gradle.kts Exclude dependency info from APKs 2024-01-22 19:33:59 +05:30
proguard-rules.pro Rename package to org.fossify.messages 2024-01-18 01:05:03 +05:30