mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
only get devices with push tokens
This commit is contained in:
@@ -1321,7 +1321,7 @@ namespace Bit.Core.Services
|
||||
private async Task<IEnumerable<string>> GetUserDeviceIdsAsync(Guid userId)
|
||||
{
|
||||
var devices = await _deviceRepository.GetManyByUserIdAsync(userId);
|
||||
return devices.Select(d => d.Id.ToString());
|
||||
return devices.Where(d => !string.IsNullOrWhiteSpace(d.PushToken)).Select(d => d.Id.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user