OUT-386: Set the user name of the identity to reset sync
authorThomas
Thu, 01 Aug 2019 08:25:31 +0200
branchsync
changeset 269198aaf91e2bc4
parent 2690 bbb6238d7b32
child 2692 191245f448f5
OUT-386: Set the user name of the identity to reset
UI/FormControlOptions.xaml.cs
     1.1 --- a/UI/FormControlOptions.xaml.cs	Thu Aug 01 07:58:36 2019 +0200
     1.2 +++ b/UI/FormControlOptions.xaml.cs	Thu Aug 01 08:25:31 2019 +0200
     1.3 @@ -124,9 +124,11 @@
     1.4              // Get the identity and reset its keys
     1.5              if (accountSettingsListBox.SelectedItem is FormControlOptions.AccountState accountState)
     1.6              {
     1.7 -                PEPIdentity identity = new PEPIdentity(accountState.SmtpAddress)
     1.8 +                PEPIdentity identity = new PEPIdentity
     1.9                  {
    1.10 -                    UserId = PEPSettings.PEP_OWN_USER_ID
    1.11 +                    Address = accountState.SmtpAddress,
    1.12 +                    UserId = PEPSettings.PEP_OWN_USER_ID,
    1.13 +                    UserName = accountState.UserName
    1.14                  };               
    1.15  
    1.16                  try