titilambert / harbour-squilla

GNU General Public License v3.0
5 stars 0 forks source link

Remove whitespaces from number #6

Open d-vogel opened 8 years ago

d-vogel commented 8 years ago

Hey, I was experiencing issues to send sms to contacts from the Jolla address book (actually, myself during tests) however, sending an sms to myself from the Jolla was making a new friend pop up in squilla, only labelled with my phone number. The issues is actually due to the fact that my phone numbers are saved with a white space every third number (getting something like +XX X XX XX XX XX which I think is easier to read) but this was apparently making the dbus call used to send the sms fail. To fix this, I changed friends.py#233 to `new_friend = Friend(fullname, number.replace(" ",""), auth_user)