chatty adds international prefix in some cases to the sender’s phonenumber
i know that this probably should be reported upstream but i have problems creating account, [](https://source.puri.sm/Librem5/chatty) .
chatty adds international prefix in some cases to the sender’s phonenumber (or text), both when try to send and receiving. some phone numbers are national only, so some cases conversions are errorness, even if correct, conversion should not happen to either direction (national or international).
in my case, “15400” will turn into “+35815400”. this won’t happen in all numbers.
it should not add anything to the phonenumber what it gets from operator. it’s operator’s responsibility to add or change prefix if they do that.
one way to replicate is to try sending text message and insert sender's phone number and go to edit the message. no actual sending is needed.
device is pinephone and multiple operating systems, including mobian.
as a hint, take a look at chatty-utils.c, function chatty_utils_check_phonenumber(++).
(link not added by me, link for “chatty” source code)
as a hint, i looked into source code and manage to trace the issue to the package “libphonenumber”. it has xml file containing rules for changes and most likely is compiled inside to the lib binary. however, chatty does not need to use that conversion.
(link not added by me, link for “libphonenumber” source code)
issue