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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user