Skip to content

Commit

Permalink
Revert commit 2f07074
Browse files Browse the repository at this point in the history
Don't skip messages whose addresses contain spaces upon insertion.

Commit 2f07074 (don't insert SMS messages whose addresses contain
spaces, since they're assumed to be group SMS messages which we don't
know how to handle correctly) introduced a regression of single
recipient SMS messages whose addresses contain spaces being skipped upon
insertion. Revert this change.

Addresses: #159, #205, #128
  • Loading branch information
tmo1 committed Sep 3, 2024
1 parent a1cd939 commit 1e98fba
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,6 @@ suspend fun importMessages(
Log.d(LOG_TAG, "Skipping due to debug settings")
return@JSONLine
}
// I haven't been able to figure out how to properly insert SMS messages with multiple recipients
// https://github.com/tmo1/sms-ie/issues/159
if (messageJSON.optString(Telephony.Sms.ADDRESS).split(" ").size > 1) {
Log.d(LOG_TAG, "SMS has multiple recipients - skipping")
return@JSONLine
}
if (deduplication) {
val smsDuplicatesCursor = appContext.contentResolver.query(
Telephony.Sms.CONTENT_URI,
Expand Down

0 comments on commit 1e98fba

Please sign in to comment.