1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-08 03:23:23 +00:00
This commit is contained in:
Matt Portune
2022-01-18 19:31:32 -05:00
parent afecc1f569
commit 59e7969856
5 changed files with 13 additions and 19 deletions

View File

@@ -1051,20 +1051,18 @@ namespace Bit.Core.Services
await SetValueAsync(key, value, reconciledOptions);
}
public async Task<string> GetPushRegisteredTokenAsync(string userId = null)
public async Task<string> GetPushRegisteredTokenAsync()
{
var reconciledOptions = ReconcileOptions(new StorageOptions { UserId = userId },
await GetDefaultStorageOptionsAsync());
var options = await GetDefaultStorageOptionsAsync();
var key = Constants.PushRegisteredTokenKey;
return await GetValueAsync<string>(key, reconciledOptions);
return await GetValueAsync<string>(key, options);
}
public async Task SetPushRegisteredTokenAsync(string value, string userId = null)
public async Task SetPushRegisteredTokenAsync(string value)
{
var reconciledOptions = ReconcileOptions(new StorageOptions { UserId = userId },
await GetDefaultStorageOptionsAsync());
var options = await GetDefaultStorageOptionsAsync();
var key = Constants.PushRegisteredTokenKey;
await SetValueAsync(key, value, reconciledOptions);
await SetValueAsync(key, value, options);
}
public async Task<bool?> GetAppExtensionStartedAsync(string userId = null)