Pass country code into MSISDN requests

Fixes #6723
This commit is contained in:
Johannes Marbach
2022-09-15 20:20:26 +02:00
parent 72451c8651
commit a6be7da27c
2 changed files with 4 additions and 1 deletions
@@ -3702,11 +3702,13 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
msisdn = [NSString stringWithFormat:@"+%@", [e164 substringFromIndex:2]];
}
NSString *countryCode = newPhoneNumberCell.isoCountryCode;
[self showAuthenticationIfNeededForAdding:kMX3PIDMediumMSISDN withSession:session completion:^(NSDictionary *authParams) {
[self startActivityIndicator];
__block MX3PidAddSession *new3Pid;
new3Pid = [session.threePidAddManager startAddPhoneNumberSessionWithPhoneNumber:msisdn countryCode:nil success:^{
new3Pid = [session.threePidAddManager startAddPhoneNumberSessionWithPhoneNumber:msisdn countryCode:countryCode success:^{
[self showValidationMsisdnDialogWithMessage:[VectorL10n accountMsisdnValidationMessage] for3PidAddSession:new3Pid threePidAddManager:session.threePidAddManager authenticationParameters:authParams];