Skip to content

Commit

Permalink
fix: normalize phone numbers for received sms
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Jun 12, 2024
1 parent 8ca2f32 commit b66569b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class DeviceSmsRepo : SmsRepository {

override suspend fun persistSms(context: Context, smsData: SmsData) {
val values = ContentValues()
values.put(Telephony.Sms.ADDRESS, smsData.address)
values.put(Telephony.Sms.ADDRESS, ContactsHelper.normalizePhoneNumber(smsData.address))
values.put(Telephony.Sms.BODY, smsData.body)
values.put(Telephony.Sms.DATE, smsData.timestamp)
values.put(Telephony.Sms.READ, 1)
Expand Down

0 comments on commit b66569b

Please sign in to comment.