mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
ensure international numbers are handled correctly
the international flag semantically means 'Should we throw an error if an international number is passed in?' (and the answer is no. We should not.)
This commit is contained in:
@@ -64,8 +64,8 @@ def format_mmg_datetime(date):
|
||||
|
||||
|
||||
def create_inbound_mmg_sms_object(service, json):
|
||||
message = format_message(json['Message'])
|
||||
user_number = validate_and_format_phone_number(json['MSISDN'])
|
||||
message = format_mmg_message(json['Message'])
|
||||
user_number = validate_and_format_phone_number(json['MSISDN'], international=True)
|
||||
|
||||
provider_date = json.get('DateRecieved')
|
||||
if provider_date:
|
||||
|
||||
Reference in New Issue
Block a user