1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 00:03:22 +00:00

Fix for short profile Name value crashing app (#1833)

This commit is contained in:
Matt Portune
2022-03-09 09:00:04 -05:00
committed by GitHub
parent c043528a16
commit bf33f23c12
5 changed files with 17 additions and 2 deletions

View File

@@ -470,6 +470,15 @@ namespace Bit.Core.Services
))?.Profile?.Name;
}
public async Task SetNameAsync(string value, string userId = null)
{
var reconciledOptions = ReconcileOptions(new StorageOptions { UserId = userId },
await GetDefaultStorageOptionsAsync());
var account = await GetAccountAsync(reconciledOptions);
account.Profile.Name = value;
await SaveAccountAsync(account, reconciledOptions);
}
public async Task<string> GetOrgIdentifierAsync(string userId = null)
{
return (await GetAccountAsync(